posted 21 years ago
Chiran,
one possible problem might be the way you are compiling the code.
In order for the code with assertions to be compiled, you have to type
javac -source 1.4 AssertTest.java
I tried the same code and it compiles just fine
Hope this helps
Sri