I am trying to write a program where you search a string1 to find out how many times string2 appears. I see how to use the string.indexOf() function however that only finds one instance, and I am having big trouble with trying to get a loop to work with this can someone help this king beginner... PLEASE!!!