Class MessageView

Object
MessageView

public class MessageView extends Object
  • Field Details

    • scanner

      private final Scanner scanner
  • Constructor Details

    • MessageView

      public MessageView()
  • Method Details

    • printMenu

      public void printMenu()
      Prints the menu for user. Implemented in Lab 12.
    • getInput

      public String getInput(String msg)
      Prints a message to console then returns next line of input from user using the Scanner. Implemented in Lab 10.
      Parameters:
      msg - message to print to console
      Returns:
      next line of user input