posted 21 years ago
You can disable the program if assertions are not enabled using something like the following.
If assertions are not enabled the assertsEnabled boolean remains false and the RuntimeException is thrown.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>