-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrackListTest.java
More file actions
18 lines (16 loc) · 915 Bytes
/
TrackListTest.java
File metadata and controls
18 lines (16 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import java.util.*;
public class TrackListTest {
public static void main(String[] args) {
TrackList tracks = new TrackList();
//Add tracks(4 songs)
tracks.addSong("Ric Flair Drip", "Going to the jeweler, bust the AP, yeah. Slidin' on the water like a jet-ski, yeah..");
tracks.addSong("Finesse", "Out here drippin' in finesse. You know it, you know it!");
tracks.addSong("PROBLMS", "Remember that I tried to build ya, now I ain't worried 'bout shit. So I found me a new thang, I'm not as lost as you think..");
tracks.addSong("Mood", "You don't wanna fall back. I don't want to fall back tonight. I just want my old baby..");
//Pull one of the songs by title
String lyrics4mood = tracks.getSong("Mood");
System.out.println(lyrics4mood);
//Print all track names and lyrics
tracks.printTrackList();
}
}