SortedTunes - music.addCD ("Les Miserables",...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // SortedTunes.java Author: Lewis and Loftus // // Solution for Programming Project 6.12 //******************************************************************** public class SortedTunes { //----------------------------------------------------------------- // Creates a CDCollection object and adds some CDs to it. Prints // reports on the status of the sorted collection. //----------------------------------------------------------------- public static void main (String[] args) { SortedCDCollection music = new SortedCDCollection(); music.addCD ("Storm Front", "Joel, Billy", 14.95, 10); music.addCD ("Come On Over", "Twain, Shania", 14.95, 16);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: music.addCD ("Les Miserables", "Hugo, Victor", 17.95, 33); music.addCD ("Graceland", "Simon, Paul", 13.90, 11); music.addCD ("The Stranger", "Joel, Billy", 14.95, 12); music.addCD ("How Do You Like Me Now", "Keith, Toby", 15.49, 26); System.out.println (music); music.addCD ("Greatest Hits", "Buffet, Jimmy", 15.95, 13); music.addCD ("Breathe", "Hill, Faith", 16.45, 13); music.addCD ("Place In The Sun", "McGraw, Tim", 19.99, 26); music.addCD ("52nd Street", "Joel, Billy", 14.95, 11); music.addCD ("Double Live", "Brooks, Garth", 19.99, 26); music.addCD ("Fly", "Dixie Chicks", 14.99, 26); System.out.println (music); } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online