ICSE Class 10 Computer Applications
Question 16 of 32
Input in Java — Question 16
Back to all questions 16
Question Question 16
Write a statement to let the user enter an integer or a double value from the keyboard.
Scanner keyboard = new Scanner(System.in);
double num = keyboard.nextDouble();