getChar

.getChar( index )

Returns the character found at the given index. If the index is outside of the string's length, then null is returned.

Indexes start from 0.

a = "xyz".getChar( 0 ) // set to 'x'
a = "xyz".getChar( 1 ) // set to 'y'
a = "xyz".getChar( 2 ) // set to 'z'
a = "xyz".getChar( 3 ) // set to null