String Manipulation
String Manipulation
We always cannot write our strings as arrays; hence we can define the
String in Java as follows:
//Representation of String
String strSample_2 = "ROSE";
String Concatenation:
Concatenation is joining of two or more strings.
//String Concatenation
String str1 = "Rock";
String str2 = "Star";