This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes find a String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "find a String" Watch "find a String" New topic

find a String

marc spoon

Joined: Aug 08, 2001
Posts: 13
Hi all!
what�s the best way to find a String in an ending list of other Strings?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

What's an ending list?

Anyways, from the API:
indexOf(String str)
Returns the index within this string of the first occurrence of the specified substring.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: find a String
Similar Threads
Read and search for text in a file
JSP Error
String new object clarification
How to find number of decimal places?