From bbfea6a58692da47dd6e166dd13cd02dd6d55074 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Mon, 28 Dec 2020 12:50:35 +0100 Subject: Display content of an album --- Album.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Album.java') diff --git a/Album.java b/Album.java index 1dd193d..e2de48f 100644 --- a/Album.java +++ b/Album.java @@ -27,7 +27,12 @@ public class Album implements Serializable { public String getArtist(){return artist;} public Date getDate(){return date;} - public ArrayList getSongs(){return songs;} + public void getSongs(){ + for ( Song s : songs ){ + System.out.println(s); + } + + } public void setId(int id){this.id=id;} -- cgit v1.2.3