Computer Science, asked by vibhubharadwaj3, 1 year ago

can anyone tell me the diff. between the function read() and readLine() in Scanner class used in java programming its urgent coz tommorow is my computer board exam...

Answers

Answered by lastbenchstudent
0

read() method reads only a single character

while readline() method reads whole line or reads a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r')

Similar questions