diff options
Diffstat (limited to 'Album.java')
-rw-r--r-- | Album.java | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,9 +1,11 @@ import java.util.ArrayList; public class Album { + private int id, duration, date; private String title, artist; private ArrayList songs = new ArrayList(); + public Album(int id, String title, int duration, String artist, int date, ArrayList songs) { this.id=id; this.title=title; @@ -16,8 +18,7 @@ public class Album { public int getId(){return id;} public String getTitle(){return title;} public int getDuration(){ - - + //Addition of the duration of the songs inside the album return duration; } |