Class StonksAppView
Object
StonksAppView
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets next action from userAsks user for next actionvoidPrints menu with user optionsvoidStart screen for the program.voidwalletInfo(Wallet w, StonkMarket sm) Prints wallet information.
-
Field Details
-
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
Gets next action from user- Returns:
- String - next action
-
getAction
Asks user for next action- Parameters:
msg- String containing message to print- Returns:
- getAction()
-
walletInfo
Prints wallet information.- Parameters:
w- Wallet object passed in from Mainsm- StonkMarket object passed in from Main
-