Search:

Type: Posts; User: KucerakJM

Search: Search took 0.17 seconds.

  1. Replies
    3
    Views
    1,468

    Re: Infinite loop problem

    I suppose saying that it will revert wasn't quite right. If there is a mismatch then the Scanner won't advance to the next input and, in this case, keep using a non-integer value causing an infinite...
  2. Replies
    3
    Views
    1,468

    Re: Infinite loop problem

    I take it that the method getRectangle() is used inside of a loop, possibly in the main() method? Seeing the actual loop would probably help and I find it curious that you only catch the exception...
Results 1 to 2 of 2