Int firstOccurs(Char c, String str)
Arguments
c: The character to check forstr: The string to check
Usage
Returns the position of the first occurence of the character in the string (or the length of the string if the character is not in the string).
str = "abcdefgabcde";
i = firstOccurs('a',str); // i = 0
i = firstOccurs('d',str); // i = 3
i = firstOccurs('h',str); // i = 12