Results 1 to 4 of 4
Thread: eternal loop problem
- 04-27-2007, 03:33 AM #1
Member
- Join Date
- Apr 2007
- Location
- Pennsylvania,USA
- Posts
- 45
- Rep Power
- 0
- 04-27-2007, 03:24 PM #2
Member
- Join Date
- Apr 2007
- Location
- Indiana
- Posts
- 83
- Rep Power
- 0
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.
p
- 04-27-2007, 04:57 PM #3levent Guest
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.
- 04-29-2007, 03:55 PM #4
Member
- Join Date
- Apr 2007
- Location
- Pennsylvania,USA
- Posts
- 45
- Rep Power
- 0
Similar Threads
-
Loop Help
By HeavyD in forum New To JavaReplies: 7Last Post: 09-22-2010, 09:55 PM -
do...while loop
By eva in forum New To JavaReplies: 16Last Post: 01-31-2008, 06:44 AM -
For loop problem
By mcal in forum New To JavaReplies: 32Last Post: 01-25-2008, 03:51 PM -
A loop that doesn't loop
By MichYer in forum New To JavaReplies: 2Last Post: 07-30-2007, 08:44 AM -
While loop
By leebee in forum New To JavaReplies: 1Last Post: 07-18-2007, 03:11 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks