Computer Applications

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

Input in Java

25 Likes

Answer

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

Answered By

13 Likes


Related Questions