//////////////////////////////////////////////////////////////// // // Student's name: // Instructor: // // Students must modify the code in this file, and only the code // in this file. If the system you are using does not allow the // code in this file to remain separate from the code in Week11.java, // then you may add this code to the end of Week11.java for testing, // but you should separate your code into a separate file before // you print it for grading. // // This file consists entirely of stub code, just enough for the // Week11 application to compile and to run without throwing any // exceptions. // //////////////////////////////////////////////////////////////// import java.util.*; //////////////////////////////////////////////////////////////// // // Inventory // //////////////////////////////////////////////////////////////// class Inventory { Inventory () { } // adds the given movie to this Inventory void add (Movie m) { } // is the given movie in this inventory? boolean inStock (Movie m) { return false; } // titles of movies in stock, in the natural order List titles () { return new LinkedList(); } // movies made between year1 and year2, inclusive, sorted by year List betweenYears (int year1, int year2) { return new ArrayList(); } // movies directed by the given director, sorted by year List directedBy (Person director) { return new LinkedList(); } // movies in which the given Actor or Actress appears, sorted by year List starring (Actor a) { return new ArrayList(); } // movies in which some character has the given name, sorted by year List hasRole (String name) { return new Vector(); } } //////////////////////////////////////////////////////////////// // // StudentTests // //////////////////////////////////////////////////////////////// class StudentTests { void run () { // Your examples and tests go here. } }