indexOf gives you the position of the first occurrence of a string within a string, or -1 if it isn't found. Read the API for a full description. I'm not going to do it for you, but this should...
Type: Posts; User: copeg
indexOf gives you the position of the first occurrence of a string within a string, or -1 if it isn't found. Read the API for a full description. I'm not going to do it for you, but this should...
Look into using the indexOf method of String.
Defined as:
public int indexOf(String str,
int fromIndex)
You can use this method to iterate through the string quite easily...