Computer Science, asked by thecyrusdavid, 10 months ago

GIVE ONE POINT DIFFERENCE UNDER EACH HEADING next() and nextLine() computers plz tell me now I will follow u

Answers

Answered by BrainlyMehu
1

next() can read the input only till the space. It can't read two words separated by 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).

Answered by mdyousuf5471
0

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

Similar questions