1 2 3 4 5 6 7 8 9
public class JavaClass { public static void main(String[] args) { /* assert EXPRESSION1 ; */ assert (a != null) && (b != null); /* assert EXPRESSION1 : EXPRESSION2 ; */ assert (a != null) && (b != null) : "Message"; } }