Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes Mistake of the day Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Mistake of the day" Watch "Mistake of the day" New topic
Author

Mistake of the day

Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

How could I have?



You can imagine it wasnt that hard to find...Likely a result of going from do-while to just while.
[ November 11, 2005: Message edited by: Mr. C Lamont Gilbert ]
Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
This is one of the most ing mistakes ever!

I know how it feels mate.



ASCII silly question, Get a silly ANSI.
Tom Blough
Ranch Hand

Joined: Jul 31, 2003
Posts: 263
To paraphrase my favorite Dilbert comic strip, "...don't get me started on your overuse of semi-colons...".

Cheers


Tom Blough<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>Cum catapultae proscriptae erunt tum soli proscripti catapultas habebunt.<hr></blockquote>
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Are you using an IDE? Automated reformatting should make the problem more visible. And I *think* Eclipse can flag such strange code (a loop with an empty statement) with a warning.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Tony Morris
Ranch Hand

Joined: Sep 24, 2003
Posts: 1608
Originally posted by Ilja Preuss:
Are you using an IDE? Automated reformatting should make the problem more visible. And I *think* Eclipse can flag such strange code (a loop with an empty statement) with a warning.


Intellij IDEA certainly can - flag empty statements as warnings


Tony Morris
Java Q&A (FAQ, Trivia)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Mistake of the day