Question
Return every song from the music ratings API as an ArrayList of Song objects. * * A JSON string containing the information for every rated
Return every song from the music ratings API as an ArrayList of Song objects. * * A JSON string containing the information for every rated song can be obtained with a GET * request to the url: http://fury.cse.buffalo.edu/musicRatings/getAllSongs * The format of the returned string is a JSON list of songs represented as JSON objects in the * same format as the input of the previous method. To see this format and the data you can paste * the url into a web browser. * * @return An ArrayList containing all the songs from the music ratings API */ public static ArrayList
return null; }
/** * 10 points * * Returns the song from the music ratings API that has been rated the most number of times as * a Song object. The rating of the songs should not be considered in this method, only the number * of times they have been rated. Ties can be broken arbitrarily. * * @return A Song with the most reviews */ public static Song getMostRatedSong(){
return null; }
Need the correct answer to these two questions I have been struggling with them for almost 2 weeks now.
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