diff options
author | Masfehico <clyhtsuriva@gmail.com> | 2020-12-07 15:05:37 +0100 |
---|---|---|
committer | Masfehico <clyhtsuriva@gmail.com> | 2020-12-07 15:05:37 +0100 |
commit | 863d326bd146fb08d9b8c6de03bde0e83f61c74a (patch) | |
tree | 3e968cbea938f13fe26e9b15b460cc2197754532 /Album.java | |
parent | 8f19fb3b2578db523fa574427aacd51ae873cbc2 (diff) |
cleaning and adding stuff in playlist
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; } |