+ 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"?
3 Answers
+ 3
https://code.sololearn.com/cM66mNv2wOPj/?ref=app
this may help you.
+ 2
1) write char[] alphabet = {...};
2) make a for loop:
for (char c: alphabet) {
System.out.print(c);
}
3) Watch the output