Assertions are enabled with the "-ea" command when running the program from the Command Line. You do
not enable assertions by modifying your source file (using TextPad).
For assertions to work, the file needs to be compiled with "-source 1.4" (without quotation marks) between the javac command and the file name.
By default, assertions are disabled when the program is run. To enable assertions, run the program with "-ea" (without quotation marks) between the
java command and the file name.
Compiling with assertions:
javac - source 1.4 Filename.java
Running with assertions:
java -ea Filename