Add an additional field on the object to store the year


Problem

KJAVA wants a class to keep track of recordings it plays. Create a class named Recording that contains fields to hold methods for setting and getting a Recording's title, artist, and playing time in seconds. Save the file as Recording.java.

Write an application that instantiates five Recording objects and prompts the user for values for the data fields. Then prompt the user to enter which field the Recordings should be sorted by-song title, artist, or playing time. Perform the requested sort procedure, and display the Recording objects. Save the file as RecordingSort.java.

For exercise 3, I have add an input, the year that the song was released. Add the additional field to the input. Add to the solution the ability to sort based on the year that the songs were recorded.

a) Add an additional field on the object to store the year
b) Ask the user for the year the song was released
c) Add an the proper sets and gets in the class file for year, i.e., setYear and getYear
d) Requires creating an additional sort by year.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Add an additional field on the object to store the year
Reference No:- TGS03261541

Expected delivery within 24 Hours