Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PlayListRunner {
- public static void main(String[] args) {
- PlayList test1 = new PlayList();
- System.out.println(test1);
- PlayList test2 = new PlayList(2);
- System.out.println(test2);
- PlayList test3 = test2;
- test1.setList(2);
- System.out.println(test1);
- test2.addSong(0, new Song("song1", "album1", "artist1", 250));
- test2.addSong(1, new Song("song2", "album2", "artist2", 350));
- System.out.println(test2.getSong(0));
- System.out.println(test2.numSongs());
- System.out.println(test2.totalLength());
- test2.removeArtist("artist1");
- System.out.println(test2);
- test2.addSong(1, new Song("song1", "album1", "artist1", 250));
- test2.removeLength(300);
- System.out.println(test2);
- test2.addSong(1, new Song("song2", "album2", "artist2", 350));
- System.out.println(test2);
- test2.shuffle();
- System.out.println(test1);
- System.out.println(test2);
- System.out.println(test3);
- System.out.println(test1.equals(test2));
- System.out.println(test2.equals(test3));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement