File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
What is the diff b/w string & String buffer?
150 MB attachment on Jboss
assed SCJP1.4 with 88%
Passed SCWCD 1.4 with 85%
Job Offer in Symphny
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014