Let's say I have the string "catdogcatdogcatdog". I want to find the index of the second occurence of "dog". How would I do this? I understand the usage of stringName.indexOf("phrase") but how I don't really see how I can use this method alone to find the index of the second or third occurrence.
