Computer Science, asked by nehashenoy31, 1 year ago

name the scanner class method to read String

Answers

Answered by priyanshikakatyayan
1

Hey friend here is your answer . . . .

Scanner in = new Scanner(System.in);

String a= in.nextLine();

This is how we use scanner class method to read string.

Hope it helps you !!!

Please mark me as the BRAINLIEST one . . . . .

Have a great day !!!

Similar questions