void (boolean value) { try { if (value) { throw new ClassNotFoundException(); } else { throw new NumberFormatException(); } } catch(ClassNotFoundException cnfe) { System.out.println(); } catch(NumberFormatException nfe) { System.out.println(); } }