Strings in Java
by, 04-26-2012 at 06:24 PM (344 Views)
The most common use of the string class is manipulation and holding of the text strings, in Java programs. In case of automatically imported standard java.lang packages this is usually found, therefore nothing special is needed to use it.
String class can be used in its simplest form by typing text that is usually double quotes surrounded. This is what is known as String literal.
"This is a Java String"
Anywhere a String object is needed, string literal can be typed as in:
Java Code:Console.println("Hello there!");