Comment on Tutorial - indexOf( ) and lastIndexOf( ) in Java By Hong
Comment Added by : Kyle
Comment Added at : 2012-03-22 09:17:04
Comment on Tutorial : indexOf( ) and lastIndexOf( ) in Java By Hong
ASNWERING: what's the purpose of indexOf('t',10) ?
The purpose is to look for the index of the character 't' STARTING at index 10;
String str = "hello world";
//Let's say you wanted to find the index of the second 'o'.
//This searches the string for 'o' starting immediately after
// first 'o'. (Remember, Strings are simply arrays, and their
// indexes start out at 0.
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
2. Your solution is really helped me. Thanks for your
View Tutorial By: Rajakumar at 2010-05-31 06:05:53
8. please try to elaborate the explanation with examp
View Tutorial By: bhavitha at 2014-02-21 06:09:12