write the names of any three methods of scanner class
Answers
Answered by
41
The methods are:
- int nextInt() It is used to read an integer value from the keyboard.
- int nextFloat() It is used to read a float value from the keyboard.
- long nextLong() It is used to read a long value from the keyboard.
- String next()
Answered by
1
Answer:
The methods are:
int nextInt() It is used to read an integer value from the keyboard.
int nextFloat() It is used to read a float value from the keyboard.
long nextLong() It is used to read a long value from the keyboard.
String next()
Similar questions