wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Consider Paul's rocket mass heater.
 
subject: find a String
 
Similar Threads
Read and search for text in a file
JSP Error
Regex
String new object clarification
How to find number of decimal places?