public class PrintSubString{
public static void main(String args[]){
String s = "corejavacourse";
System.out.println(s.substring(5)); // from 5th character to end of of the string will print
System.out.println(s.substring(5,8)); //only three character will print i.e 5,6,7...
}
}