<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/**
 * SimpleTimeTester - Lab 8
 *
 **********************************************************
 *
 * This is a SIMPLE test of the Time class. It is being
 * provided to you as an example of a driver program.
 * This does NOT test all of the functionality of
 * the Time class, but it's a starting point for your
 * own (hopefully more thorough) testing.
 *
 **********************************************************
 *
 * Author: Michael Clarkson
 * NetID: mrc26
 * Date: 7/20/00
 */
class SimpleTimeTester {

	public static void main(String[] args) {
	
		// Time reference for use in testing
		Time t;

		// Test default constructor		
		t = new Time();
		System.out.println(t.toString());	// should print 00:00:00
		
		// Test overloaded constructor
		t = new Time(12, 34, 56);
		System.out.println(t.toString());	// should print 12:34:56
		
		// Test set method
		t.setTime(13, 50, 24);	
		System.out.println(t.toString());	// should print 13:50:24
		
		// Test advancing
		t = new Time();
		t.advanceSec();
		System.out.println(t.toString());	// should print 00:00:01
		
		// Test standard time
		t.setTime(10, 0, 0);
		System.out.println(t.toStringStandard()); // should print 10:00:00 AM
	}
	
}</pre></body></html>