Indexof String

in Hindi - Indexof String



not yet

Source Code :

RUNpublic class IndexOf{  

  public static void main(String args[]) {

        String str1 = "Hello World";
 String str2 = "World";

  System.out.println(" Index (indexOf) of str1 : "+ str1.indexOf('l'));
 System.out.println(" Index (indexOf) of str1 : "+ str1.indexOf('l' ,5 ));
 }
 }