Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are to obtain the song data and Song objects using the BRIDGES API via the bridges.connect.DataSource and bridges.data_src_dependent. Song classes. To provide customized sorting
You are to obtain the song data and Song objects using the BRIDGES API via the bridges.connect.DataSource and bridges.data_src_dependent. Song classes. To provide customized sorting of the song data, you are to write a SongComparator class that implements the java.util.Comparator interface for bridges.data_src_dependent. Song objects. A second class is to be written called SongList that contains a main method. The program is to: Read song data from the BRIDGES song dataset Read an artist name as a command line argument. If a command line argument is not provided, prompt the user to enter an artist name. Provide method that returns a formatted list of all the songs by that artist that appear on the playlist, grouped by album and in alphabetical order by song title. The name of the method must be: public String getSongsByArtist(String artist) The returned String is to be formatted with each song on a separate line with the song title, artist and album labeled as shown here: Title: Harder, Better, Faster, Stronger Artist: Daft Punk Album: Discovery If no songs by the given artist are on the playlist, an appropriate message is to be displayed. You are to obtain the song data and Song objects using the BRIDGES API via the bridges.connect.DataSource and bridges.data_src_dependent. Song classes. To provide customized sorting of the song data, you are to write a SongComparator class that implements the java.util.Comparator interface for bridges.data_src_dependent. Song objects. A second class is to be written called SongList that contains a main method. The program is to: Read song data from the BRIDGES song dataset Read an artist name as a command line argument. If a command line argument is not provided, prompt the user to enter an artist name. Provide method that returns a formatted list of all the songs by that artist that appear on the playlist, grouped by album and in alphabetical order by song title. The name of the method must be: public String getSongsByArtist(String artist) The returned String is to be formatted with each song on a separate line with the song title, artist and album labeled as shown here: Title: Harder, Better, Faster, Stronger Artist: Daft Punk Album: Discovery If no songs by the given artist are on the playlist, an appropriate message is to be displayed
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