How would you add a list of "events" and "tasks" to their respective arrays?
public class Day
//Event  events;
//Task  tasks;
ArrayList<Event> events = new ArrayList<Event> ();
ArrayList<Task> tasks = new ArrayList<Task> ();
//String nextEvent = "";
//String nextTask = "";
public String toString()
return events + " " + "\n" + tasks;
public void addEvent(Event e)
//events = e;
public void addTask(Task t)
//tasks = t;
Re: How would you add a list of "events" and "tasks" to their respective arrays?
Read the API docs for ArrayList, there's got to be a method to add stuff.