Computer Science, asked by Riddhi13102006, 7 months ago

How to input a character in scanner class. Pls give me the ans of this question..

Answers

Answered by beherasabita801
0

please mark me brainliest

please follow me

Answered by siddarthhuded
0

Answer:

Scanner class in Java. We need to use the next() method to read a single character as a string and then use charAt(0) to get the first character of that string. Scanner scanner = new Scanner(System.in); char ch = scanner. next().

Similar questions