All pastes #984369 Raw Edit

Mine

public text v1 · immutable
·published 2008-04-14 04:04 UTC
rendered paste body
	public static void main(String args) {
		Calendar four20pm = new GregorianCalendar(2008, 4, 12, 16, 20);
		Calendar four35pm = new GregorianCalendar(2008, 4, 12, 16, 35);
		Calendar four50pm = new GregorianCalendar(2008, 4, 12, 16, 50);
		Calendar four55pm = new GregorianCalendar(2008, 4, 12, 16, 55);


		//(int year, int month, int date, int hour, int minute) 

		Day tday = new Day();
		
		System.out.println("valid four20pm, four50pm: " + (tday.isTimeAvailable(four20pm, four50pm) ? "true" : "false"));
		tday.addAppointment(5, "appt test1", four20pm, four50pm, "test1", "test2");
		
		System.out.println("output for 5: " + tday.getAppointment(5));
		
		for (Appointment aptr : (Appointment[])tday.getAppointments()) {
			System.out.println(aptr);
		}
		System.out.println("output for 6: " + tday.getAppointment(6));
		
		tday.deleteAppointment(5);
		System.out.println("after deletion");
		for (Appointment aptr : (Appointment[])tday.getAppointments()) {
			System.out.println(aptr);
		}
		
		System.out.println("valid four35pm, four55pm: " + (tday.isTimeAvailable(four35pm, four55pm) ? "true" : "false"));
		tday.addAppointment(6, "appt test2", four35pm, four55pm, "test3", "test4");
		
		
		
		//tday.addAppointment(id, title, startTime, endTime, description, location );
		
	}