/** Second example program showing exceptions. * We call a constructor which handles its own exception. * If there is a problem with the input, the program will halt there. * Note that the way the Driver here is written, we don't see * that there might be a possible input exception. * "RESPONSIBLE" VERSION */ public class Driver { public static void main(String [] args) { // Create an Item object by calling the default constructor, // which will in turn ask the user for input. Item i = new Item(); System.out.printf("The item is: %s\n", i.toString()); } }