To implement writeLibrary, open a PrintWriter and copy the code from main that iterates
the array of Music objects. You should get the same output as in the previous lab, except
the method will send the output to a file.
1: Brown Eyed Girl, Blowin' Your Mind!, Van Morrison, 1967
2: Stop Putting the Hurt on Me, Lucille, B. B. King, 1968
3: Another Brick in the Wall, The Wall, Pink Floyd, 1979
4: Funeral for a Friend, Goodbye Yellow Brick Road, Elton John, 1973
5: Beat It, Thriller, Michael Jackson, 1982
6: Like a Virgin, Like a Virgin, Madonna, 1984
7: So Far Away, Brothers in Arms, Dire Straits, 1985
8: Try a Little Tenderness, Swamp Boogie Queen, Katie Webster, 1990
9: Hey Jack Kerouac, MTV Unplugged, 10,000 Maniacs, 1993
10: Mockingbird, Encore, Eminem, 2005
11: Jackdaw, Draw the Line, David Gray, 2009
12: Someone Like You, 21, Adele, 2011
Number of Tracks: 12
Total cost: $13.78