2 public static void main(String str[]) {
3 String a="hello world\n";
5 System.printInt(a.indexOf('e'));
6 System.printString("\n");
7 System.printInt(a.indexOf("world"));
8 System.printString("\n");
9 System.printString(a.subString(3));
10 System.printString(a.subString(3,6));
11 System.printString("\n");
13 String b = "Danger iN cAVErn_coVE";
14 System.out.println( "normal: "+b );
15 System.out.println( "upper: "+b.toUpperCase() );
16 System.out.println( "lower: "+b.toLowerCase() );