package pr03; public class TuneTester { public static void main(String[] args) { System.out.println("TuneTester written by S. Robbins"); Tune tune1 = new Tune("Beethoven's 9th Symphony",60*66+9.234); System.out.println(tune1); System.out.println("All tests for Part 2 have been completed\n"); Podcast podcast1 = new Podcast("All Things Considered", 30*60, "http://www.npr.org/AllThingsConsidered.html"); Song song1 = new Song("The Elements", 102, "An Evening Wasted with Tom Lehrer", "Tom Lehrer"); System.out.println(podcast1); System.out.println(song1); System.out.println("All tests for Part 3 have been completed\n"); TuneList list = new TuneList(); list.add (new Podcast ("This American Life March 13 2009", 3511.0, "http://audio.thisamericanlife.org/")); list.add (new Podcast ("Learn Italian iPod Advanced November 2 2008", 898.0, "http://libsyn.com/")); list.add (new Podcast ("Byte Podcast #153", 2313.0, "http://www.podtrac.com/")); list.add (new Song ("Her Majesty", 23.0, "Abbey Road", "The Beatles")); list.add (new Song ("Chopin: Nocturnes, Op. 55", 295.0, "Chopin: The 21 Nocturnes ? The 26 Preludes [Disc 1]", "1. #1 15 In F Sharp")); list.add (new Song ("Chopin: Nocturnes, Op. 32", 274.0, "Chopin: The 21 Nocturnes ? The 26 Preludes [Disc 1]", "1. #1 In B")); list.add (new Song ("Chopin: Nocturnes, Op. 9", 328.0, "Chopin: The 21 Nocturnes ? The 26 Preludes [Disc 1]", "1. #1 In B Flat Minor")); list.add (new Song ("One of Us", 238.0, "ABBA Gold: Greatest Hits", "ABBA")); list.add (new Song ("The Name of the Game", 240.0, "ABBA Gold: Greatest Hits", "ABBA")); list.add (new Song ("Thank You for the Music", 231.0, "ABBA Gold: Greatest Hits", "ABBA")); list.add (new Song ("Waterloo", 163.0, "ABBA Gold: Greatest Hits", "ABBA")); list.add (new Song ("Super Trouper", 254.0, "RTL Ultimative Chart Show", "ABBA")); list.add (new Song ("Rocker", 169.0, "Dirty Deeds Done Dirt Cheap", "AC/DC")); list.add (new Song ("Problem Child", 344.0, "Dirty Deeds Done Dirt Cheap", "AC/DC")); list.add (new Song ("Ride On", 349.0, "Dirty Deeds Done Dirt Cheap", "AC/DC")); list.add (new Song ("Prelude, Op. 32, No. 2: B-Flat Minor", 163.0, "Rachmaninov: Preludes", "Alexis Weissenberg")); list.add (new Song ("Prelude, Op. 32, No. 7: F", 127.0, "Rachmaninov: Preludes", "Alexis Weissenberg")); list.add (new Song ("Come Together", 260.0, "Abbey Road", "The Beatles")); list.add (new Song ("Something", 183.0, "Abbey Road", "The Beatles")); list.add (new Song ("Pretty Maids All In A Row", 239.0, "Hotel California", "The Eagles")); list.add (new Song ("The Last Resort", 448.0, "Hotel California", "The Eagles")); list.add (new Song ("Hotel California", 389.0, "Rock Top 500 Volume 1", "The Eagles")); list.add (new Song ("Life In The Fast Lane", 288.0, "Rock Top 500 Volume 2", "The Eagles")); list.add (new Song ("Take It Easy", 212.0, "Rock Top 500 Volume 2", "The Eagles")); System.out.println("About to display list in order of insertion"); list.display(); System.out.println("All tests for Part 4 have been completed\n"); System.out.println("About to display list by title:"); list.displayByTitle(); System.out.println("All tests for Part 5 have been completed\n"); } }