I am looking for a help to my code in java as I wanted to print only the uppercase of ASCII. So I made an array and run a for loop. I made an if condition to access the characters from 65 to 90, then I used this format to print the value system.
out.printf("%c : ",ch[x]).
Unfortunately I got garbage as output. here is the complete code:
for(int x=0; x<ch.length; x++) {
if(ch[x]>=65||ch[x]<=90) {
System.out.printf("%c ",ch[x]);
}
}
java, research string + java + toupper, post your code to help us fix yours.&&instead of||