diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-28 13:33:43 +0100 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-28 13:33:43 +0100 |
commit | 61768eade51a08d0036156a05bd83311dc1b6299 (patch) | |
tree | 05bcf5a8b325751c659dbdf7c1079ca663f20dd7 /Album.java | |
parent | 3b58bb1f300f0b8a951ccdcf1143d2d99612cc92 (diff) |
Added method to display albums sorted by genre
Diffstat (limited to 'Album.java')
-rw-r--r-- | Album.java | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -33,7 +33,11 @@ public class Album implements Serializable { } } - + public String getGenre(){ //used for AG + Song firstSong=this.songs.get(0); + String firstSongGenre = firstSong.getGenre(); + return firstSongGenre; + }; public void setId(int id){this.id=id;} public void setTitle(){this.title=title;} |