diff options
Diffstat (limited to 'jMusicHub.java')
-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."); |