Computer Science, asked by sattyamasiddhartha9a, 1 month ago

write the names of any three methods of scanner class​

Answers

Answered by SpreadLove
41

\huge{\underline{\underline{\bold{\mathtt{\purple{A{\pink{N{\green{S{\blue{W{\red{E{\orange{R}}}}}}}}}}}}}}}}

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 manaswitap07
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