Class StonksAppView

Object
StonksAppView

public class StonksAppView extends Object
  • Field Details

    • scanner

      private final Scanner scanner
  • Constructor Details

    • StonksAppView

      public StonksAppView()
  • Method Details

    • startScreen

      public void startScreen()
      Start screen for the program. Feel free to add a splash screen.
    • printMenu

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

      public String getAction()
      Gets next action from user
      Returns:
      String - next action
    • getAction

      public String getAction(String msg)
      Asks user for next action
      Parameters:
      msg - String containing message to print
      Returns:
      getAction()
    • walletInfo

      public void walletInfo(Wallet w, StonkMarket sm)
      Prints wallet information.
      Parameters:
      w - Wallet object passed in from Main
      sm - StonkMarket object passed in from Main