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