Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

ITT: EXPERT JAVA PROGRAMMERS

Name: Anonymous 2009-02-10 9:52


import java.util.GregorianCalendar;

/**
 * A class created to handle the user's query request and facilitate the collection of
 * bits of information (day, month, year, hour, minute) to a {@link GregorianCalendar} date.
 *
 */
public class SearchCriteria
{
   int startDate;
  
   int startMonth;
  
   int startYear;
  
   int startHour;
  
   int startMin;
   
   int endDate;
    
   int endMonth;
  
   int endYear;
  
   int endHour;
  
   int endMin;
  

   public SearchCriteria(int startDate, int startMonth, int startYear,
                           int startHour, int startMin, int endDate, int endMonth,
                           int endYear, int endHour, int endMin)
   {
      this.startDate = startDate;
      this.startMonth = startMonth;
      this.startYear = startYear;
      this.startHour = startHour;
      this.startMin = startMin;
      this.endDate = endDate;
      this.endMonth = endMonth;
      this.endYear = endYear;
      this.endHour = endHour;
      this.endMin = endMin;
   }

   public GregorianCalendar getStart()
   {
      GregorianCalendar cal = new GregorianCalendar();
      cal.set(startYear, startMonth, startDate, startHour, startMin);
      return cal;
   }
   public GregorianCalendar getEnd()
   {
      GregorianCalendar cal = new GregorianCalendar();
      cal.set(endYear, endMonth, endDate, endHour, endMin);
      return cal;
   }
}


SOME CODE CHANGED TO PROTECT THE GUILTY

Name: Anonymous 2009-02-10 11:49

THAT CODE BOTH CONFUSES AND ANGERS ME

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List