String out = null;  if (finder.hasNext()) { currentWord = finder.next(); wordCount++; out = currentWord.getText(); }  return out;
return currentWord.getText();
  public String nextWord() {    String out = null;    if (finder.hasNext()) {      currentWord = finder.next();      wordCount++;      out = currentWord.getText();    }    return out;  }