Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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.
I agree. Here's the link:
subject: finding a sequence in the string
assed SCJP1.4 with 88%
Job Offer in Symphny
What is the diff b/w string & String buffer?
150 MB attachment on Jboss
Passed SCWCD 1.4 with 85%
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013