public class A1Q1 { public static void main(String[] args) { int numActors = getNumActors(); int numMovies = getNumMovies(); String[] firstNames = new String[numActors]; String[] lastNames = new String[numActors]; int[] birthYears = new int[numActors]; fillActorArrays(lastNames, firstNames, birthYears); //*** fill parallel arrays with actor information. String movieTitles = new String[numMovies]; String starFirst = new String[numMovies]; String starLast = new String[numMovies]; int years = new int[numMovies]; fillMovieArrays(movieTitles, years, starFirst, starLast); //*** fill parallel arrays with movie information. Actor[] actorArray = new Actor[numActors]; Movie[] movieArray = new Movie[numMovies]; for (int i=0; i < numActors; i++) { actorArray[i] = new Actor(firstNames[i], lastNames[i], birthYears[i]); //*** fill the actor array up } for (int i=0; i < numMovies; i++) { movieArray[i] = new Movie(movieTitles[i], years[i], HASJHASJDHAJDHJHAJ); //*** fill the movie array up } System.out.println("\nEnd of processing."); } } class Actor { private String lastName, firstName; private int birthYear; public Actor(String first, String last, int year) { this.firstName = first; this.last = last; this.birthYear = year; } } class Movie { private String title; private int year; private Actor star; public Movie(String title, int year, Actor star) { this.title = title; this.year = year; this.star = star; } }