The method used to read numeric value during program execution is?
Answers
Answered by
4
Answer:
In order to read a number (integer) from the user, we first create an object of the Scanner class and then invoke the nextInt() method. It is the most preferred method to take input of primitive types. Similarly, we can also use nextDouble(), nextLong(), nextFloat(), etc.
Answered by
0
Answer:
the method used to read numeric value during program execution is -
Similar questions
Math,
1 month ago
English,
1 month ago
Environmental Sciences,
2 months ago
Chemistry,
9 months ago
Math,
9 months ago