Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java if with String

class Main {
  public static void main(String[] args) {
    // create a string variable
    String language = "Java";

    // if statement
    if (language == "Java") {
      System.out.println("Best Programming Language");
    }
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Java #String
ADD COMMENT
Topic
Name
9+3 =