A Java program that finds the index of the first occurence of a letter in a string and tests for this