View Single Post
  #3 (permalink)  
Old 04-27-2007, 06:57 PM
levent levent is offline
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Quote:
All int variables are always less tha or equal to Integer.MAX_VALUE, which is defined as the highest int value. When i gets to Integer.MAX_VALUE andi s incremented, it silently wraps around to Integer.MIN_VALUE, thus the eternal loop.

Hmm.. You are right. Congratulation pegitha, you are careful.
Reply With Quote