File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: find a String
It's not a secret anymore!