Sunday, April 25, 2010

Search substring in any where

Posted on 3:52 PM by Kalum Umesh

public class Main {
  public static void main(String[] argv) throws Exception {
    String string = "I am Java";

    if(string.indexOf("I am")> 0)
    System.out.println("find sub string");

  }
}

No Response to "Search substring in any where"

Leave A Reply

 
Free Website Hosting