Originally posted by kri shan: If i use indexOf(), can i find last occurrence of a character or a substring in the invoking string (or) can i use lastIndexOf() ?
yes, with lastIndexOf(String) you would get the last occurrence of that string.
Don't get me started about those stupid light bulbs.