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
1. Hey your help is really appreciated but I dont und
View Tutorial By: farid khan at 2012-03-21 15:59:53
8. Hey guys it's working. If not then remove p.waitFo
View Tutorial By: dileep at 2013-01-04 19:51:38
9. Showing code with quote tags is pretty rubbish. :/
View Tutorial By: Daniel Jonsson at 2011-09-01 14:01:04