Commit 04f751c3 authored by Trisha Gee's avatar Trisha Gee
Browse files

Code from p533.

parent f39cb412
Loading
Loading
Loading
Loading
+10 −1
Changes for src/main/java/Jukebox1.java: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -2,10 +2,11 @@ import java.util.*;

public class Jukebox1 {

    // QU: Should this be a List or ArrayList? Have we covered this?
    ArrayList<String> songList = new ArrayList<>();

    public static void main(String[] args) {
        new Jukebox1().go();
        new Jukebox1().goP533();
    }

    public void go() {
@@ -13,6 +14,14 @@ public class Jukebox1 {
        songList = s.getSongs();
        System.out.println(songList);
    }

    public void goP533() {
        Songs s = new Songs();
        songList = s.getSongs();
        System.out.println(songList);
        Collections.sort(songList);
        System.out.println("\n" + songList);
    }
}

// Below is the "mock" code. A stand in for the actual