diff options
Diffstat (limited to 'Album.java')
-rw-r--r-- | Album.java | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -3,7 +3,7 @@ import java.util.ArrayList; public class Album { private int id, duration, date; private String title, artist; - private ArrayList<String> songs = new ArrayList<String>(); + 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; @@ -13,6 +13,15 @@ public class Album { this.songs=songs; } + public int getId(){return id;} + public String getTitle(){return title;} + public int getDuration(){ + + + return duration; + + } + } |