This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 20136
    
  30

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 - OCEJPAD 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.

 
wood burning stoves
 
subject: Boolean Question in SimpleTableDemo.java Sun sample prog
 
jQuery in Action, 3rd edition