Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to make a string java

/*A Java string is a sequence of characters that exists as an object of the class java. lang. 
Java strings are created and manipulated through the string class.
Once created, a string is immutable -- its value cannot be changed. A string is sequence of characters.*/
String str = "This is a String":
String str2 = "Hello World";
 
PREVIOUS NEXT
Tagged: #string #java
ADD COMMENT
Topic
Name
4+9 =