MovieManager lab
I’m going to try to develop that idea on some exercises based on this lab:
So I have this requirement:
- Make a program that can manage information about movies such as:
- Movie name.
- Its director (e.g. so I can plan a themed marathon with my friends.)
- Director’s prestige: I want to know how many Oscars has the director won through his career.
- It also needs to include its critics made by the best professionals and to know how well or poorly rated it is.
User Story #1 - The easiest and certain way to hit the wall.
Let’s just start coding:
moviemodel.java
public Class MovieManager {
public static void main(String[])
}
public Class Movie {
private String title;
private ArrayList<Review> reviews;
private Director director;
}
public Class Review {
private Critic critic;
private Movie movie;
private int rating;
private String comment;
}
public Class Critic {
private String name;
private ArrayList<Review> reviews;
}
public Class Director {
private String name;
private int oscarQty;
private ArrayList<Movie> movies;
}