Class GardenView

Object
GardenView

public class GardenView extends Object
  • Field Details

    • scanner

      private final Scanner scanner
  • Constructor Details

    • GardenView

      public GardenView()
  • Method Details

    • printMenu

      public void printMenu()
      Prints menu with user options
    • getRow

      public int getRow()
      Asks user for which row they want to use
    • input

      public String input(String question)
      Prints a question to the screen then asks user for input
      Parameters:
      question - Question to be printed to the screen
      Returns:
      String - user input
    • getAction

      public String getAction()
      Asks user for next action
      Returns:
      String - next action