//Zachary Fitzsimmons import java.util.*; import java.io.*; public class Movie implements Comparable { private Integer year; private String title; private Person director; private LinkedList actors; public Movie() { year = 0; title = ""; director = new Person(); actors = new LinkedList(); } public Movie(int y, String t, Person d, LinkedList a) { year = y; title = t; director = d; actors = new LinkedList(); for(Person p : a) actors.add(p); } public LinkedList getActors() { return actors; } public int compareTo(Movie m2) { return title.compareTo(m2.title); } public String toString() { String actor_string = ""; for(Person actor : actors) actor_string += actor + " "; return new String(year + " " + title + " Director: " + director + " Actors: " + actor_string); } }