Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. private void echo () {
  2. String command ;
  3. String command2;
  4. ui.display();
  5. ui.displayString("ECHO MODE");
  6. do {
  7. command = ui.getCommand();
  8. ui.displayString(command);
  9. } while (!command.equals("quit"));
  10. {
  11. ui.displayString("The game is over.");
  12. }
  13. do{
  14. command = ui.getCommand();
  15. ui.displayString(command);
  16. }while (!command.equals("help")||(!command.equals("buy"))||(!command.equals("roll"))||(!command.equals("done"))||(!command.equals("property"))||(!command.equals("balance")));
  17. {
  18. ui.displayString("Please enter a valid command");
  19. }
  20.  
  21.  
  22. return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement