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");
}
}
Subscribe to:
Post Comments (Atom)
No Response to "Search substring in any where"
Leave A Reply