import java.io.*; import java.util.Scanner; public class Appointment extends DueDo { private String where; private Time end; public void read(Scanner in) throws IOException { super.read(in); System.out.print("enter end time [hh:mma/p]: "); try { end = new Time(in.nextLine()); } catch (Exception bt) { System.err.println(bt + "; using default"); end = new Time(); } System.out.print("enter where: "); where = in.nextLine(); } public String toString() { return super.toString() + " - " + end + ", " + where; } }