I’m not sure about usage of assertions in Java (only used them in C), but you can just comment them out to compile the code (which is what I’ve done) or, according to sun’s page on assertions (http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html), compile with the -source flag, i.e. “javac -source 1.4 MyClass.java”, although I haven’t tried that. They are just there to enforce error checking, data, pre/post conditions, etc. Check out the link above for more info on assertions.
EDIT: A little more info from that page:
[quote]In order to ease the transition from a world where assert is a legal identifier to one where it isn’t, the compiler supports two modes of operation in this release:
-source mode 1.3 (default) - the compiler accepts programs that use assert as an identifier, but issues warnings. In this mode, programs are not permitted to use the assert statement.
-source mode 1.4 - the compiler generates an error message if the program uses assert as an identifier. In this mode, programs are permitted to use the assert statement.
Unless you specifically request source mode 1.4 with the -source 1.4 flag, the compiler operates in source mode 1.3. If you forget to use this this flag, programs that use the new assert statement will not compile.
[/quote]