import java.io.*; import java.lang.*; //Testing tank public class testUnderflow { public static void main(String[] argn) { try { Tank t = new Tank(); System.out.println("tank content = "+t.content()); t.remove(1.0); System.out.println("Underflow Exception not handled"); } catch (IllegalArgumentException e) { System.err.println("Can't add/remove negative amounts"); } catch (Tank.TankUnderFlowException e) { System.err.println("Tank underflow by "+e.underflow); } } }