Returns a string made of a single character taken from the specified string at the specified index.

An index should range from 0 to str.length()-1. The first character of the sequence is at index 0, the next at index 1, and so on. If index is out of that range, an empty string is returned.

Example:

charAt("caramela",4);
will return string:
"m"
Tip:

You may call this function in a more method-like style:

s.charAt(index)