Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are provided with three java source files in D 2 L . One, Actor.java, is a class that represents an actor in a cast
You are provided with three java source files in DL One, Actor.java, is a class that represents an actor in a cast and provides methods to access attributes and change their preferred medium and their number of years of acting. The second, Cast.java, represents a cast of actors this is a list of actors in a production, and provides constructors to create a cast given an array of actors or create one by reading items using a Scanner object. In the latter case the input format consists of a line with the number of actors, followed by a line for each actor containing values separated by commas. There will be two lists, one for each cast and an extra actor at the end that will be added to one of the casts see example below The Cast class also includes a method to display the actors in a cast. The casts are sorted in ascending value of the actor ID these are unique for each actor Finally, TestCast.java is a simple test driver that will test each of the new methods.You are provided with three java source files in DL One, Actor.java, is a class that represents an actor in a cast and provides methods to access attributes and change their preferred medium and their number of years of acting. The second, Cast.java, represents a cast of actors this is a list of actors in a production, and provides constructors to create a cast given an array of actors or create one by reading items using a Scanner object. In the latter case the input format consists of a line with the number of actors, followed by a line for each actor containing values separated by commas. There will be two lists, one for each cast and an extra actor at the end that will be added to one of the casts see example below The Cast class also includes a method to display the actors in a cast. The casts are sorted in ascending value of the actor ID these are unique for each actor Finally, TestCast.java is a simple test driver that will test each of the new methods.
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