/*************************************************************
 * This class display different semesters by calling  
 * startingMonth() method from SemesterUtilities class.
 *
 * @author Lu Tian modifys Prof. David Bernstein's code
 * @version 1
 ************************************************************/
 // Date: February 05, 2007 
 // CS 239 - Section 1
 // Lab 8
public class Example1
{
  	/**
	 * The main() method displays semesters
	 *
	 * @param args		Command line (Ignored) 
	 **/  
	 public static void main(String[] args)
    {
       //Declare an array Sessions object
	 	 Sessions[]  semesters; 
		 
		 //Create array length
		 semesters = new Sessions[3];
		 
		 //Assign value to each semester
		 semesters[0] = Sessions.SPRING;
		 semesters[1] = Sessions.SUMMER;
		 semesters[2] = Sessions.FALL;
       

       System.out.println("Session starting months in 2006: " + "\n");
       
		 //Using for loop to display months that associate with each semester
       for (int i = 0; i < semesters.length; i++)
       {
    		 System.out.println(semesters[i] + " starts: " 
			 					+ SemesterUtilities.startingMonth(semesters[i]));       
       }
		 
		 //Print ending program message
		 System.out.println("\n" + "The program end normally.");
    }
    



}
