A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
finding a sequence in the string
Joined: Jan 05, 2007
Feb 16, 2007 04:36:00
I want to check for a specified sequence in a
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
Joined: Oct 04, 2005
Feb 16, 2007 05:02:00
String.indexOf() or the String.lastIndexOf() should do it for you.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: finding a sequence in the string
assed SCJP1.4 with 88%
150 MB attachment on Jboss
Job Offer in Symphny
Passed SCWCD 1.4 with 85%
What is the diff b/w string & String buffer?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014