Char getIndex(String s, Int i)
Arguments
s: The stringi: The position in the string
Usage
Get a character from a String. Gets the ith character of the given String. The index starts at zero.
str = "abcdefg";
c = getIndex(str,0); // 'a'
c = getIndex(str,5); // 'f'
An IllegalIndex exception is thrown if i is out of bounds.