Query from Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
0
You use that to take a character type input.
30th May 2020, 8:52 AM
Avinesh
Avinesh - avatar