This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Sounds like you may unaware of the comprehensive API documentation available online. The documentation (cleverly named "Javadocs") covers the methods and properties of all the core Java classes & interfaces. For exampleclick here to see the documentation for the String class
Joined: Aug 31, 2004
indexOf looks like it is teh way to go.
I am familiar with the javadoc. I was just looking for advice on which particular String method to use. The javadoc did not provide enough information for me to make the best decision on which of the many methods to use.