document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. /**
  2.  * Represents the keypad of the GTO machine
  3.  */
  4.  
  5. import java.util.Scanner; // program uses Scanner to obtain user input
  6.  
  7. public class Keypad
  8. {
  9.      private Scanner input; // reads data from the command line
  10.    
  11.      // no-argument constructor initializes the Scanner
  12.      public Keypad()
  13.      {
  14.          input = new Scanner( System.in );
  15.      } // end no-argument Keypad constructor
  16.    
  17.      // return an integer value entered by user
  18.      public int getInput()
  19.      {
  20.          return input.nextInt(); // we assume that user enters an integer
  21.      } // end method getInput
  22. }  
  23. // end class Keypad
');