I'm trying to run a simple code that simulates a system for managing some cinema.
I have a Movie class, to which I want to add a Date.
(The Movie is part of a Cinema class that holds a Movies' array) The user, when inserting new data to the cinema, supposed to enter - besides the 'name' and 'rating' of the movie - a date and time. What would be the right way to set the date?
Should I create a new Calendar object to each and every Movie object and use it to set the date and time for every Movie?
Or should there be one Calendar object in Cinema that all Movie objects use to update the date and time (according to user input of course)?


Check Solution