diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-19 23:21:05 +0100 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-19 23:21:05 +0100 |
commit | fe4f2ee0f70b7b35113062538a51bf5444131196 (patch) | |
tree | ad0d0e54bf0c9ee536e96aac2c45c622e73def92 /Song.java | |
parent | 4c37298e054dc1681875a71b181ce0478c577349 (diff) |
Adding AudioBooks
Finishing AudioBook class, adding list and save for the audiobooks.
Adding extract method for both audiobooks and songs.
Resolving the id incremention issue.
Diffstat (limited to 'Song.java')
-rw-r--r-- | Song.java | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -16,32 +16,5 @@ public class Song extends MusicalElement{ public String toString() { return "Id : "+getId()+"\nTitle : "+getTitle()+"\nDuration : "+getDuration()+"\nContent : "+getContent()+"\nArtist : "+getArtist()+"\nGenre : "+getGenre(); -// return getTitle()+";"+getDuration()+";"+getContent()+";"+getArtist()+";"+getGenre(); } - -/* public static void save(){ - String filename="songs.csv"; - try - { - //Saving of object in a file - FileOutputStream file = new FileOutputStream(filename); - ObjectOutputStream out = new ObjectOutputStream(file); - - // Method for serialization of object - out.writeObject(this); - - out.close(); - file.close(); - - System.out.println("Object has been serialized"); - - } - - catch(IOException ex) - { - System.out.println("IOException is caught"); - } - }*/ - - } |