From 9c44a251a2744a082168173dfbabc01a87bd6ec6 Mon Sep 17 00:00:00 2001 From: Masfehico Date: Mon, 23 Nov 2020 17:35:02 +0100 Subject: Minor testing changes --- Album.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Album.java') diff --git a/Album.java b/Album.java index cdd39db..b48cf8e 100644 --- a/Album.java +++ b/Album.java @@ -3,7 +3,7 @@ import java.util.ArrayList; public class Album { private int id, duration, date; private String title, artist; - private ArrayList songs = new ArrayList(); + 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; + + } + } -- cgit v1.2.3