I just need some help with one part of my code. I have 3 classes, Activity, DaySchedule, and DayScheduleFrontEnd. In the DaySchedule Class a have a method called addActivity:

```
public void AddActivity(Activity aActivity)
{
    //Check if activity array is full
    if(activities[activities.length-1] != null)
    {
        System.out.println("The activities database is full");
        return;
    }
    //Find the first empty space
    for(int i=0;i<activities.length;i++)
    {
        if(activities[i] == null)
        {
            activities[i] = aActivity;
            break;
        }
    }
    this.SortActivitiesByTime();
}

```

What I need help on is that an activity cannot conflict with another one. An activity conflicts if the start and the end of one activity cannot fall at the same time as another. If this were to occur the user should be notified and the activity is not added. Also this method should finally sort the activities based on their starting time. So for example if I had Activity: BreakFast StartHour: 8 EndHour: 9 and then Activity: Breakfast part 2 StartHour: 8 EndHour: 10 it would print out saying that there is a conflict.

Accessors from Activity Class

* getStartHour()
* getEndHour()