Computer Science, asked by kaustubh3616, 3 days ago

Name the method of scanner class that is used to input : - a decimal number from the console *
nextInt()
nextDouble()
nextLine()

Answers

Answered by neharajput05022002
0

Answer:

nextLine() method of scanner class that is used to input.

Explanation:

Scanner, you can use its various read method to read input from users. If you want to read String, you can use nextLine(), if you want to read integer numbers, you can use nextInt().

I Hope it's clear

Similar questions