diff --git a/audio/Song.java b/audio/Song.java index 28a5ba4..6ec5a2c 100644 --- a/audio/Song.java +++ b/audio/Song.java @@ -155,4 +155,14 @@ public class Song implements Comparable{ public int compareTo(Song s) { return getTitle().compareTo(s.getTitle()); } + + public int getTimesPlayed() + { + int timesPlayed = 0; + for(SongInstance s : songs) + { + timesPlayed += s.getTimesPlayed(); + } + return timesPlayed; + } }