Question
Create a class in java to represent objects for a Video Library, with appropriate instance variables (Name, Year, Rating (1 to 5 stars), Sort movie
Create a class in java to represent objects for a Video Library, with appropriate instance variables (Name, Year, Rating (1 to 5 stars), Sort movie by Title, Sort movie by Rating etc). Four instance variables. Include appropriate constructors, print methods and possibly accessor and mutator methods. Create another class (the main program class) that has an array of your objects (4 to 5) Use a menu which allows users to enter data for a new object one at a time, print all the objects in the array, search for a particular object or compare if two objects have been entered twice.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started