+ 1

Query from Java

What is meant by the index number in the syntax sc.next.charAt (0) ? (I have written 'sc' just to give a syntax. It depends upon the object name specified while declaring Scanner class using new operator)

30th May 2020, 7:38 AM
Aditya Negi
Aditya Negi - avatar
1 Odpowiedź
0
You use that to take a character type input.
30th May 2020, 8:52 AM
Avinesh
Avinesh - avatar