Two Debugging Techniques
Example:
if (DEBUG) {
System.out.println("Base is " + base + " and n is " + n + ".");
}
where DEBUG is a constant set to true or
false depending on whether you wish to see the debugging
output or not.
Class Example:
Click on BroccoliDamage to show the example.