word method

String word()

Implementation

String word() {
  return words[random.nextInt(words.length - 1)];
}