diff options
| author | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-24 06:48:40 +0100 |
|---|---|---|
| committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-24 06:48:40 +0100 |
| commit | f7a696ffc2247de6377c0e080c44e54b98fb123d (patch) | |
| tree | e8a34eff518396fe80f38c585abaaae10e8bfd3b /Album.java | |
| parent | bec74db10232efaa6d1456df4d01924f0313a0e9 (diff) | |
| download | jMusicHub-f7a696ffc2247de6377c0e080c44e54b98fb123d.tar.gz jMusicHub-f7a696ffc2247de6377c0e080c44e54b98fb123d.tar.bz2 jMusicHub-f7a696ffc2247de6377c0e080c44e54b98fb123d.zip | |
Finishing album and starting playlists
Diffstat (limited to '')
| -rw-r--r-- | Album.java | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -35,8 +35,12 @@ public class Album implements Serializable { public void setArtist(){this.artist=artist;} public void setDate(){this.date=date;} + public void addSong(Song song){ + this.songs.add(song); + } + public String toString() { - return "Id : "+getId()+"\nTitle : "+getTitle()+"\nDuration : "+getDuration()+"\nArtist : "+getArtist()+"\nDate of release : "+getDate()+"\nSongs : "+getSongs(); + return "Id : "+getId()+"\nTitle : "+getTitle()+"\nDuration : "+getDuration()+"\nArtist : "+getArtist()+"\nDate of release : "+getDate(); } } |
