public abstract char last ()

Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty) and returns the character at that position.

Returns:  the last character in the text, or DONE if the text is empty

See also:
getEndIndex()