Lecture 20
8
Two System tricks
•If you must print, use System.err rather than System.out
•System.err goes to screen even when System.out is redirected with >
•Terminal class implements errPrintln as well as println
•If you must shut down immediately:
•     if (trueDisaster)
•          System.exit(911);
•  operating system can check return code from the JVM
•