Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class IMDB{
- public static void main(String[] args){
- Movie m1 = new Movie(45, "Sharknado");
- Movie m2 = new Movie(87, "Shawshank Redemption");
- Movie m3 = new Movie(33, "Shutter Island");
- Movie m4 = new Movie(69, "Basic Instinct");
- Movie m5 = new Movie(20, "Interstellar", "Science Fiction", 2014, "Christopher Nolan", 169, 8.6);
- MovieList mlist = new MovieList(m1, m2, m3, m5);
- mlist.toPrint();
- mlist.addMovie(m4);
- mlist.removeMovie(m2);
- mlist.toPrint();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement