Question: Could someone help me solve this java problem? The Song class has the following methods available for you to use: - public Song(String title, String
Could someone help me solve this java problem?
The Song class has the following methods available for you to use: - public Song(String title, String artist, int playTime, String filePath) - (The Constructor) - public String getTitle() -public String getArtist() - public int getPlayTime() - public String getFilePath() - public void play() -public void stop() - public String toString() To find out what each method does, look at the documentation for the Song class ^1. PlayList (the driver class) You will write a class called PlayList. It is the driver class, meaning, it will contain the main method. In this class, you will gather song information from the user by prompting and reading data from the command line. Then, you will store the song information by creating song objects from the given data. You will use the methods available in the song class to extract data from the song objects, calculate statistics for song play times, and print the information to the user. Finally, you will use conditional statements to order songs by play time. The ordered "playlist" will be printed to the user. Your PlayList code should not duplicate any data or functionality that belongs to the Song objects. Make sure that you are accessing data using the Song methods. Do NOT use a loop or arrays to generate your Songs. We will discuss how to do this later, but please don't over complicate things now. If you want to do something extra, see the extra credit section below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
