Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    14
    Views
    1,299

    Re: Help with array nots being updated

    Also posted at: Roulette Wheel Not Working Completely - Java | Dream.In.Code
  2. Replies
    14
    Views
    1,299

    Re: Help with array nots being updated

    Did you miss this question?

    Did you change the compiler's settings to show all warnings?
  3. Replies
    14
    Views
    1,299

    Re: Help with array nots being updated

    To get around the problem with a call to nextLine after a call to nextInt, change all the calls to nextLine() to be calls to next().

    Did you change the compiler's settings to show all warnings?
  4. Replies
    14
    Views
    1,299

    Re: Help with array nots being updated

    That error says that the String being indexed is empty. There is no character at index 0

    The problem is the Scanner class leaves the endline char in the buffer after a nextInt(). Call nextLine()...
  5. Replies
    14
    Views
    1,299

    Re: Help with array nots being updated

    Is that because the if is false?
  6. Replies
    14
    Views
    1,299

    Re: Help with array nots being updated

    Can you copy then full text of the error message and paste it here. I don't understand what you posted.
  7. Replies
    14
    Views
    1,299

    Re: Help with array nots being updated

    I problem I see is shown by the warning messages the compiler generates. Make sure that all warning messages are displayed so you will see them.

    Use the -Xlint option with the javac command to get...
  8. Replies
    14
    Views
    1,299

    Re: Help with array nots being updated

    Can you explain what problem you are having?

    What is the purpose of saving the data in an array? How will the array's contents be used by the program?

    I problem I see is shown by the warning...
Results 1 to 8 of 8