diff options
| author | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-11 09:12:05 +0100 |
|---|---|---|
| committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-11 09:12:05 +0100 |
| commit | 532cd1e395a637a5e507bc3687a4a64e50e55b30 (patch) | |
| tree | f15d9b5a14e1129aa9b9629d842dcf8f99745d5d /jMusicHub.java | |
| parent | ec126de053cd1343e0c5778a56ea58045d0e3170 (diff) | |
| download | jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.tar.gz jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.tar.bz2 jMusicHub-532cd1e395a637a5e507bc3687a4a64e50e55b30.zip | |
adding Serialization interface and methods
Diffstat (limited to '')
| -rw-r--r-- | jMusicHub.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/jMusicHub.java b/jMusicHub.java index 0cb43b5..2cbedc3 100644 --- a/jMusicHub.java +++ b/jMusicHub.java @@ -23,7 +23,7 @@ public class jMusicHub { System.out.printf("Duration (in seconds) : "); int duration = scan.nextInt(); System.out.printf("Content path : "); - String trash = scan.nextLine(); //Using this because the content scan is skippe after a nexInt + String trash = scan.nextLine(); //Using this because the content scan is skip after a nexInt String content = scan.nextLine(); System.out.printf("Artist : "); String artist = scan.nextLine(); @@ -118,6 +118,12 @@ public class jMusicHub { break; case "-": break; + case "s": + for (Song s: songs){ + s.save(); + } + + break; default : System.out.println("Unknown command. Type h for help."); |
