Question: The code above is an example of how I usually code and below is the questions I need answered in the same format. * Return

The code above is an example of how I usually code and below is the questions I need answered in the same format.

* Return all rated songs by the given artist. Hint: When comparing String, as well as any other objects, in java you should use the .equals method * and not theoperator. Usingdoes not always return true even when the two Strings have identical values. However, the .equals method will compare the values of the Strings and return true only if these values are identical (same characters in the same order) Example: String x"hello" String y "hello" *ifx.equals(y) System.out.printlnC"hello!") Note: For this assignment you should only return the songs that match the provided artist String exactly * However, this this may miss some songs when the rater did not use proper capitalization, didn't add *spaces, or even misspelled the artists name eparam Filename The name of a ssy file containing song ratings eparam artist The artist to be searched ereturn All songs by the artist that have been rated in the provided file public static ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
