Hi dhwani,
I think this will help you .
public class StringMethod {
public static void main(String[] args) {
// TODO Auto-generated method stub
String s="my java certification";
System.out.println(s.substring(4));// Displays the string from index 4 to end of the string
System.out.println(s.substring(3, 7)); //Displays the string from index 3 to index 6 (before index 7)
System.out.println(s.replace('a', 'b'));//Where ever a is present it changes to b
String s1[]=s.split("\\s"); // where there is space split the string
for(int i=0;i<s1.length;i++)
System.out.println(s1[i]);
}
}