Scanner S = new Scanner(System.in); //(Read from the keyboard) int a = S.nextInt(); //(Method to read from the keyboard)