Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Create Java Strings using the new keyword

class Main {
  public static void main(String[] args) {

    // create a string using new
    String name = new String("Java String");

    System.out.println(name);  // print Java String
  }
}
 
PREVIOUS NEXT
Tagged: #Create #Java #Strings #keyword
ADD COMMENT
Topic
Name
9+9 =