Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: Java  |  size: 0.52 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     /**
  2.      *  Main show routine. Loops until end of the app.
  3.      */
  4.     public void show()
  5.     {            
  6.         printWelcome();
  7.  
  8.         // Enter the main command loop.  Here we repeatedly read commands and
  9.         // execute them until the game is over.
  10.  
  11.         boolean finished = false;
  12.         while (! finished) {
  13.             Command command = parser.getCommand();
  14.             finished = processCommand(command);
  15.         }
  16.         System.out.println("Thank you for tweeting, have a nice day!");
  17.     }