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
Win a copy of
Make it so: Java DB Connections & Transactions
this week in the
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%
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-2015