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.
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.