Search:

Type: Posts; User: maple1100

Search: Search took 0.08 seconds.

  1. Replies
    9
    Views
    943

    [SOLVED] Re: While loop question

    Thanks for your help, King.
  2. Replies
    9
    Views
    943

    [SOLVED] Re: While loop question

    May I know how to reset a variable? Thank you.
  3. Replies
    9
    Views
    943

    [SOLVED] Re: While loop question

    After the random number is generated, I need to compare it to see if the number is =1, if not the number would have to generate again, for a total of 5 time. Without the while loop, is there another...
  4. Replies
    9
    Views
    943

    [SOLVED] Re: While loop question

    Oh! Thank you for that pointer. Do you have any suggestion on how I can modify my code so that the outer loop will run depending on the user input of trials and the inner loop search until it find...
  5. Replies
    9
    Views
    943

    [SOLVED] While loop question

    Could anyone help me figure out why the outer loop stop running after just trial 1? Thanks

    System.out.print("Please enter the number of trials: ");
    int uInput =...
Results 1 to 5 of 5