edu.uchicago.cs.java.lec02
Class CalendarTest

java.lang.Object
  extended by edu.uchicago.cs.java.lec02.CalendarTest

public class CalendarTest
extends java.lang.Object

                        // instantiate a date with today's date called datToday
                                // create a datCount set at some earlier date
                                // while datCount.year < some arbitrary end year,  loop and increment datCount by one day
                                          //if dayOfMonth == 1  
                                                //print out year plus month
                                                //print out the days of the week Sun Mon Tue etc. 
                                                //determine the ordinal day of the week 1 through 7  Sun through Sat
                                                //init counter to ordinalDay and for each day greater than 1
                                                        //build a string for an indent
                                                        //decrement ordinalDay
                                                //print out the indent -- no line break


                                          //print out the day of the month e.g. 18
                                          //if startDate == today
                                             //add an asterix
                                          //else
                                                 //just add another space
                                          //if the day of week is saturday
                                                 //print line break
                                          //add one day to the startDate
        


Constructor Summary
CalendarTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarTest

public CalendarTest()
Method Detail

main

public static void main(java.lang.String[] args)