aboutsummaryrefslogtreecommitdiff
path: root/Song.java
diff options
context:
space:
mode:
authorClyhtsuriva <aimeric@adjutor.xyz>2020-12-19 23:21:05 +0100
committerClyhtsuriva <aimeric@adjutor.xyz>2020-12-19 23:21:05 +0100
commitfe4f2ee0f70b7b35113062538a51bf5444131196 (patch)
treead0d0e54bf0c9ee536e96aac2c45c622e73def92 /Song.java
parent4c37298e054dc1681875a71b181ce0478c577349 (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.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/Song.java b/Song.java
index 6e26332..2dd07d5 100644
--- a/Song.java
+++ b/Song.java
@@ -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");
- }
- }*/
-
-
}