You want to print the naem
which you are receiving by the input and not a single character which is what you’d get if you used .charAt().
1
solved Unable to print all the characters of a string by charAt() in Java? [closed]
You want to print the naem
which you are receiving by the input and not a single character which is what you’d get if you used .charAt().
1
solved Unable to print all the characters of a string by charAt() in Java? [closed]