aboutsummaryrefslogtreecommitdiff
path: root/Song.java
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2020-12-11 17:48:10 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2020-12-11 17:48:10 +0100
commit4c37298e054dc1681875a71b181ce0478c577349 (patch)
treed50e941206f4d9dcea6fcb527441a0f2157a6e80 /Song.java
parent67db3838608308576ef28c0259dc0584673d27a8 (diff)
(De)Serialization of the songs
Serialization and Deser now work fine for the songs. We're able to store arrays.
Diffstat (limited to 'Song.java')
-rw-r--r--Song.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Song.java b/Song.java
index 2890536..6e26332 100644
--- a/Song.java
+++ b/Song.java
@@ -15,7 +15,7 @@ public class Song extends MusicalElement{
public void setGenre(Genre genre){this.genre=genre.name();}
public String toString() {
- return "Title : "+getTitle()+"\nDuration : "+getDuration()+"\nContent : "+getContent()+"\nArtist : "+getArtist()+"\nGenre : "+getGenre();
+ return "Id : "+getId()+"\nTitle : "+getTitle()+"\nDuration : "+getDuration()+"\nContent : "+getContent()+"\nArtist : "+getArtist()+"\nGenre : "+getGenre();
// return getTitle()+";"+getDuration()+";"+getContent()+";"+getArtist()+";"+getGenre();
}