-
Scanner import : import java,util.scanner; Scanner declaration : Scanner input = new Scanner(System.in); Using Scanner : int number1 = (int) input.nextDouble(); //castingint number2 = input.nextInt();