Search:

Type: Posts; User: Norm

Search: Search took 0.34 seconds.

  1. Replies
    19
    Views
    2,019

    Re: Problem with running random class

    Please explain and show what the code is doing. Add some printlns to print out what is happening.
  2. Replies
    19
    Views
    2,019

    Re: Problem with running random class

    The Scanner method is waiting for you to enter a number.
  3. Replies
    19
    Views
    2,019

    Re: Problem with running random class

    Post the new code that compiles.

    Try debugging it by adding printlns that print out the values of the variables used in the while statement so you can see what the computer sees and know why it is...
  4. Replies
    19
    Views
    2,019

    Re: Problem with running random class

    No it is ok to have loops inside of loops. No problem there.
  5. Replies
    19
    Views
    2,019

    Re: Problem with running random class

    Is there a do without a while()?
  6. Replies
    19
    Views
    2,019

    Re: Problem with running random class

    The code you posted does not compile. How can you execute the program with compiler errors?

    Please post the full text of the compiler errors you are getting.

    The code needs to be formatted. It...
  7. Replies
    19
    Views
    2,019

    Re: Problem with running random class

    Please Edit your post and wrap your code with
    <YOUR CODE HERE> to get highlighting

    This is a strange looking while statement:

    Does this code compile for you?
    What do you want it to do?
Results 1 to 7 of 7