I am using a for loop to print the backwards alphabet in uppercase but I would like to know how to do the same thing with a while loop, which I am
for
while
x = alphabet.length() - 1; while( x > -1 ) { System.out.print( alphabet.charAt( x )); System.out.print( alphabet.toUpperCase() ); x--; }