diff options
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"); - } - }*/ - - } |