Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. Replies
    11
    Views
    1,051

    Re: Need help with my code (physics pendulum)

    What will change their value to non-zero? To prevent an infinite loop their value has to be changed.

    If you want to set an absolute limit to the number of times the loop will go around, use a...
  2. Replies
    11
    Views
    1,051

    Re: Need help with my code (physics pendulum)

    Can you answer these questions?

    What variable controls the loop?

    Where is the value of that variable changed so that the looping can end?
  3. Replies
    11
    Views
    1,051

    Re: Need help with my code (physics pendulum)

    What variable controls the loop? Where is the value of that variable changed so that the looping can end?
  4. Replies
    11
    Views
    1,051

    Re: Need help with my code (physics pendulum)

    It will be one of the arrays on line 169. Add a println just before line 169 and print out all the variables' values and the size of all the arrays used on line 169.
  5. Replies
    11
    Views
    1,051

    Re: Need help with my code (physics pendulum)

    The 169 is the source line number where the error happened. 100000 is the value of the index???
  6. Replies
    11
    Views
    1,051

    Re: Need help with my code (physics pendulum)

    Check the statement where that happens and see why the value of the index is out of bounds for the array that is being indexed.
    Remember array index values range from 0 to the array length-1
    The...
Results 1 to 6 of 6