aboutsummaryrefslogtreecommitdiff
path: root/Album.java
diff options
context:
space:
mode:
Diffstat (limited to 'Album.java')
-rw-r--r--Album.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/Album.java b/Album.java
index b48cf8e..8c7b809 100644
--- a/Album.java
+++ b/Album.java
@@ -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;
}