import Clock; class ClockDemo { public static void main(String[] argv) { Clock clock = new Clock(); // use the default constructor clock.print(); // should show 0:0:0 clock.setClock(12,45,0); clock.print(); // should show 12:45:0 clock = new Clock(1,2,3); int h = clock.getHour(); int m = clock.getMinute(); int s = clock.getSecond(); System.out.println("clock reading is "+h+":"+m+":"+s); // should show clock reading is 1:2:3 } }