Computer Applications

Write a statement to let the user enter an integer or a double value from the keyboard.

Input in Java

27 Likes

Answer

Scanner keyboard = new Scanner(System.in);
double num = keyboard.nextDouble();

Answered By

15 Likes


Related Questions