Professional Documents
Culture Documents
Experiment 11 22Z433
Experiment 11 22Z433
Roll No : 22Z433
Date : 27/11/2023
Experiment 11
package string_handling;
import java.lang.String;
// 2. int length()
System.out.println("Length of the string : " +
string.length());
// 12. Concatenation
System.out.println("Concatenation : " + string.concat("I
am a SWE."));
// Replacing a sequence
System.out.println("Relacing a sequence : " +
string.replace("santhosh", "santhoshtk."));
}
}
santhoshtk@intense ~/Desktop/PSG-TECH/3rd-sem/java