+ 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

18th Apr 2020, 4:59 PM
Abhay Kalsi
Abhay Kalsi - avatar
2 odpowiedzi
+ 1
I think you don't need space also.. So System.out.print(input. charAt(a));
18th Apr 2020, 6:41 PM
Jayakrishna 🇮🇳
+ 1
Replace line 14 with this System.out.print(input.charAt(a)+" ");
18th Apr 2020, 5:05 PM
Muhammad Bilal
Muhammad Bilal - avatar