This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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.
I agree. Here's the link:
subject: find a String
It's not a secret anymore!