Question
A. Radio station JAVA wants a class to keep track of recordings it plays. Create a class named Recording that contains fields to hold methods
A. Radio station JAVA wants a class to keep track of recordings it plays. Create a class named Recordingthat 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.
B. 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 asRecordingSort.java.
Java Programming 8th Edition
Chapter 9 Exercise 3
***Please make sure files compile***
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