/*************************************************************
 * This class creates startingMonth() method by using an  
 * enumerated type Sessions.java.
 *
 * @author Lu Tian modifys Prof. David Bernstein's code
 * @version 1
 ************************************************************/
 // Date: February 05, 2007 
 // CS 239 - Section 1
 // Lab 8
public class SemesterUtilities
{
	 /**
	  * This method starts semester with its entire month 
	  *
	  * @param semesters		The Sessions object
	  * @return					The entire month
	  **/
    public static String startingMonth(Sessions semesters)
    {
       String      month;
		 
		 month = "";
		  

/*    // THIS CODE WORKS
		 if (semesters == Sessions.SPRING)  
		 		month = "January";
       else if(semesters == Sessions.SUMMER)
		 		month = "May";
		 else if(semesters == Sessions.FALL)
		 		month = "August";       

*/

 if (semesters.equals(Sessions.SPRING))  
		 		month = "January";
       else if(semesters.equals(Sessions.SUMMER))
		 		month = "May";
		 else if(semesters.equals(Sessions.FALL))
		 		month = "August";       
  

       return month;       
    }
	
}
