+ 1

Anyone know how to print this

"char alphabet[] = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};" out as this "ABCDEFGHIJKLMNOPQRSTUVWXYZ"?

3rd Dec 2017, 8:13 AM
sameer
3 Answers
3rd Dec 2017, 10:50 AM
jamilxt
jamilxt - avatar
+ 3
https://code.sololearn.com/cM66mNv2wOPj/?ref=app this may help you.
3rd Dec 2017, 8:43 AM
šŸ¦‹FEATHERšŸ¦‹
šŸ¦‹FEATHERšŸ¦‹ - avatar
+ 2
1) write char[] alphabet = {...}; 2) make a for loop: for (char c: alphabet) { System.out.print(c); } 3) Watch the output
3rd Dec 2017, 8:31 AM
EnderJanYT
EnderJanYT - avatar