wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Boolean Question in SimpleTableDemo.java Sun sample prog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Boolean Question in SimpleTableDemo.java Sun sample prog" Watch "Boolean Question in SimpleTableDemo.java Sun sample prog" New topic
Author

Boolean Question in SimpleTableDemo.java Sun sample prog

Geoff Jefferson
Ranch Hand

Joined: Apr 09, 2009
Posts: 102

How does the boolean value DEBUG ever get changed?



Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19684
    
  20

By reassigning it? This flag is probably meant as a means to switch debugging on and off quickly. It should probably be static and final, making it a constant. The developer then sets it to true when he needs to debug, and back to false when he deploys it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Geoff Jefferson
Ranch Hand

Joined: Apr 09, 2009
Posts: 102
That's kinda' silly to put in an educational example I think.
Muddies the water.

Thanks.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Boolean Question in SimpleTableDemo.java Sun sample prog