Package util

Class ReadWord


public class ReadWord extends ReadFile
Extends the ReadFile to make getting a random word a bit more simple.
Since:
2023-02
  • Constructor Details

    • ReadWord

      public ReadWord(String directory)
      Initializes the superclass with the given directory.
      Parameters:
      directory -
  • Method Details

    • getRandomWord

      public String getRandomWord()
      Returns a random word from the list of contents.
      Returns:
      String