| Author |
finding a sequence in the string
|
abhijeet shrivastava
Greenhorn
Joined: Jan 05, 2007
Posts: 10
|
|
Hi ranchers, I want to check for a specified sequence in a string like String first = "Hi all this is abhijeet"; now i want to search for "abhijeet" in that.so what method should i use.
|
 |
Kaustabh Singha Roy
Ranch Hand
Joined: Oct 04, 2005
Posts: 43
|
|
|
String.indexOf() or the String.lastIndexOf() should do it for you.
|
 |
 |
|
|
subject: finding a sequence in the string
|
|
|