return course1.getBeginDate().compareTo(course2.getBeginDate());
return begin1.compareTo(begin2);
        public int compare(Object o1, Object o2) {            Course course1 = (Course) o1;            Course course2 = (Course) o2;            return course1.getBeginDate().compareTo(course2.getBeginDate());        }