A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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.
It is sorta covered in the
JavaRanch Style Guide
subject: finding a sequence in the string
Passed SCWCD 1.4 with 85%
assed SCJP1.4 with 88%
150 MB attachment on Jboss
What is the diff b/w string & String buffer?
Job Offer in Symphny
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014