aspose file tools
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 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "find a String" Watch "find a String" New topic
Author

find a String

marc spoon
Greenhorn

Joined: Aug 08, 2001
Posts: 13
Hi all!
what�s the best way to find a String in an ending list of other Strings?
marc
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