-
NEED SOME HELP
Ok im writing a program in java thats suppose to Use a while loop, to print the lower case alphabeth and its corresponding ascii values
of the upper case alphabeth from Z to A
So far i came up with
while
(counter +32) (char) (counter +32)
if (counter < ?)
break;
i just need a little bit of help pointing me in the right direction
-
Re: NEED SOME HELP
-Do you have to use a while?
-If so, think about a condition that when encountered will stop the loop (a certain number reached, a specific value)
-Is there a way in Java to convert a character to it's Ascii value?
-if not then you'll have to find a way of linking one value (the character) to another value (the Ascii)
Just some pointers to get you searching in the right direction. As tempting as it is to just spoon feed you the code, this approach is a lot more worth while in the long term for a budding programmer (in my own experience anyway).
-
Re: NEED SOME HELP
Have you tried creating a java program and compiling it to see what the compiler thinks of your code?
What you have posted makes no sense to me.