public boolean addEvent(int year, int month, int day, int hour, int minute, int duration, String what);
This will return true if the event was added and false otherwise. Only valid events will be added to the list.
Also write:
public CalendarEvent findNextEvent(int year, int month, int day, int hour, int minute);
return the next event that starts at a time at or after the given time. If more than one such event exists, return one that has the smallest duration.
Write:
public boolean removeEvent(int id);
If an event with this id exists, remove it and return true. Otherwise, return false.
public boolean addEvent(int year, int month, int day,
int hour, int minute, int duration, String what){
int index = CalenderEvent.indexOf(CalenderEvent);
return index != 0;
}
public CalenderEvent findNextEvent(int year, int month, int day,
int hour, int minute){
if(CalenderEvent != CalenderEvent)
return null;
return null;
}
public boolean removeEvent(int id) {
if(id==id)
return true;
return f
is my coding right?