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
English,
3 hours ago
Physics,
3 hours ago
Environmental Sciences,
5 hours ago
Chemistry,
7 months ago
Math,
7 months ago