Computer Science, asked by sangitadoraiburu5252, 2 months ago

distinguish between next () and next line()​

Answers

Answered by imtiyazdbg75
1

Answer:

hxjoahzzj

Explanation:

anzkbkzalab

Answered by Pratishtha55
1

Answer:

next() can read the input only till the space. It can't read two words separated by a space. Also, next() places the cursor in the same line after reading the input.

next() can read the input only till the space. It can't read two words separated by a space. Also, next() places the cursor in the same line after reading the input.nextLine() reads input including space between the words (that is, it reads till the end of line \n). Once the input is read, nextLine() positions the cursor in the next line.

next() can read the input only till the space. It can't read two words separated by a space. Also, next() places the cursor in the same line after reading the input.nextLine() reads input including space between the words (that is, it reads till the end of line \n). Once the input is read, nextLine() positions the cursor in the next line.For reading the entire line you can use nextLine().

hope it helps you

pls mark me Brainliest answer

Similar questions