Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. public class PlayListRunner {
  2. public static void main(String[] args) {
  3. PlayList test1 = new PlayList();
  4. System.out.println(test1);
  5. PlayList test2 = new PlayList(2);
  6. System.out.println(test2);
  7. PlayList test3 = test2;
  8. test1.setList(2);
  9. System.out.println(test1);
  10. test2.addSong(0, new Song("song1", "album1", "artist1", 250));
  11. test2.addSong(1, new Song("song2", "album2", "artist2", 350));
  12. System.out.println(test2.getSong(0));
  13. System.out.println(test2.numSongs());
  14. System.out.println(test2.totalLength());
  15. test2.removeArtist("artist1");
  16. System.out.println(test2);
  17. test2.addSong(1, new Song("song1", "album1", "artist1", 250));
  18. test2.removeLength(300);
  19. System.out.println(test2);
  20. test2.addSong(1, new Song("song2", "album2", "artist2", 350));
  21. System.out.println(test2);
  22. test2.shuffle();
  23. System.out.println(test1);
  24. System.out.println(test2);
  25. System.out.println(test3);
  26. System.out.println(test1.equals(test2));
  27. System.out.println(test2.equals(test3));
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement