Check08E (TS = 25)

Download the jar file typex.jar (the file has been updated on November 16, noon) and save it in the same directory as type.jar. typex.jar should already be part of your CLASSPATH.

Create the program named Check08E that prompts the user by printing

Enter the name of the iTunes library XML file: 
The file name should be entered on the same line (see sample run below). You may assume that the user always enters the name of an existing file. You may also assume that the file is an iTunes library XML file. A sample can be found here. Your program should print for each playlist the tracks that are played most (see sample below). If none of the tracks of a playlist were ever played, then no output for that playlist should be produced.

Next, some hints are provided.

Here is a sample run (where the user has entered library.xml)

Enter the name of the iTunes library XML file: library.xml
For the playlist Library0 the following tracks were played 75 times
        Respect by Aretha Franklin
For the playlist Library1 the following tracks were played 75 times
        Respect by Aretha Franklin
For the playlist Library2 the following tracks were played 99 times
        The Twist by Chubby Checker

To check whether your code is correct, you can use eCheck. You are advised to use the offline mode first. Once your code is correct (worth 3 marks) and you are happy with your style (worth 2 marks), you can switch to the online mode and submit your solution. For style, you should adhere to the code conventions described in Appendix C of the textbook.