/* * Playlist.java */ public class Playlist { public static void main(String[] args) { //array of songs int size = 10; Song[] list = new Song[size]; //Main generated playlist Song zero = new Song ("Tourniquiet", 4); list[0] = zero; Song one = new Song ("Cloud Connected", 5); list[1] = one; Song two = new Song ("Enter Sandman", 5); list[2] = two; Song three = new Song ("Reroute to Remain", 4); list[3] = three; Song four = new Song ("Piggy Bank", 4); list[4] = four; Song five = new Song ("Seven Nation Army", 4, "The White Stripes"); list[5] = five; Song six = new Song ("Jesus Walks", 3, "Kayane West"); list[6] = six; Song seven = new Song ("The Invasion Within", 2, "Tsunami Bomb"); list[7] = seven; Song eight = new Song ("California Dreaming", 2, "The Eagles"); list[8] = eight; Song nine = new Song ("Cloud Age Symphony", 6, "Okino Shuntaro"); list[9] = nine; //for loop for printing for(int i = 0; i < size; i++) { list[i].print(); } } }