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