Ok, I will fix all the magic number. Is it possible for you to give me a hints of how to generate both lower and upper case letter without array and .charAt?
Type: Posts; User: maple1100
Ok, I will fix all the magic number. Is it possible for you to give me a hints of how to generate both lower and upper case letter without array and .charAt?
Ok thank you. I'm guessing magic number mean using number in source code without explanation? How exactly can I fix " magic" number?
I'll keep in mind about "magic" numbers for the next program , thank you.Yes, as you say, I'm trying to get values from 'A' to 'z' skipping over the values between 'Z' and 'a'. Now that you help me...
I'm trying to generate random letter of upper case and lower case from a-z. I can't use array so I figure to generate number from 65-122 excluding 90-97 because those are not letter.
No ,so that why it stop?
The value need to be between 90 and 97 for the loop to continue.
It would be a different value each time but this time it "69"
For my case won't the value of the loop control variable be any value from 65-122 excluding 90-97?
I'm kind of confused by the question, but the while loop will loop to try and print a number from 65-122. The loop will keep looping if it encounter a number from 90-97 so it the value in the...
The while loop would print out a value from 65-122. If it encounter a value of 90 to 97, it would keep looping. Ahh.... I know where this is going. I guess because I put since the LowerLAmount can be...
It is doing exactly what it suppose to except the loop stop after 1. I can't seem to figure out why it would just stop after loop one. Then I put a println to print the "LowerLAmount" to see how many...
Could anyone tell me why this loop of mine only run once? So this would run if the user select option "2", the passLength is the length the user input in. I choose 3 as an input, won't let mean my...