Search:

Type: Posts; User: maple1100

Search: Search took 0.07 seconds.

  1. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    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?
  2. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    Ok thank you. I'm guessing magic number mean using number in source code without explanation? How exactly can I fix " magic" number?
  3. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    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...
  4. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    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.
  5. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    No ,so that why it stop?
  6. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    The value need to be between 90 and 97 for the loop to continue.
  7. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    It would be a different value each time but this time it "69"
  8. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    For my case won't the value of the loop control variable be any value from 65-122 excluding 90-97?
  9. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    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...
  10. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    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...
  11. Replies
    23
    Views
    2,554

    Re: Java Math.random() and loop

    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...
  12. Replies
    23
    Views
    2,554

    Java Math.random() and loop

    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...
Results 1 to 12 of 12