More about Strings
This chapter accompanies the previous one. Read it for even more info on Strings.
10. Play with indexOf()
The first occurrence of the string "a" within the method's string is at index 6.
Play with the following to gain insight into
Try searching for the second occurrence of "ant" in the line. Pay attention to spaces.
What is the index of the empty string "" ?