<<< Using Strings | Index | Class String, cont. >>> |
Defined in java.lang.String
Automatically imported into every program
Creating String object:
String aGreeting = new String("Hello"); // Using keyword new String aGreeting = "Hello"; // Explicitly calling class constructor
<<< Using Strings | Index | Class String, cont. >>> |