From 532cd1e395a637a5e507bc3687a4a64e50e55b30 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 11 Dec 2020 09:12:05 +0100 Subject: adding Serialization interface and methods --- jMusicHub.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'jMusicHub.java') 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(); @@ -117,6 +117,12 @@ public class jMusicHub { case "p": break; case "-": + break; + case "s": + for (Song s: songs){ + s.save(); + } + break; default : System.out.println("Unknown command. Type h for help."); -- cgit v1.2.3