text: public int last() {if (sentenceStarts.length > 0) {currentSentence = sentenceStarts.length - 1;text.setIndex(text.getEndIndex());} else { currentSentence = 0;text.setIndex(text.getBeginIndex());}return current();}