+ 1
How to arrange the output in a single line ? Do i have to use array ??
https://code.sololearn.com/cpUhlKU2Rf5S/?ref=app EXAMPLE:- input : ENTER YOUR NAME Output:R A M
2 Réponses
+ 1
I think you don't need space also..
So
System.out.print(input. charAt(a));
+ 1
Replace line 14 with this
System.out.print(input.charAt(a)+" ");