public class AssertionTest { public AssertionTest(int value){ assert value == 0: value; // assert value == 0; } public static void main(String[] args){ try { new AssertionTest(Integer.parseInt(args[0])); } catch(NumberFormatException ex){} } }