CharacterIterator last() method in Java with Examples
The last() method of java.text.CharacterIterator interface in Java is used to get the character at the ending of this CharacterIterator. This method sets the position of the iterator to the last character, using getEndIndex(), and then returns that character. Syntax: public char last() Parameter: Th