From 2a265d2f8787174337df4d5fc83e206ddd3289c4 Mon Sep 17 00:00:00 2001 From: Masfehico Date: Mon, 23 Nov 2020 16:15:21 +0100 Subject: Musical elements updated and jMusicHub basic creation --- jMusicHub.java | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'jMusicHub.java') diff --git a/jMusicHub.java b/jMusicHub.java index e69de29..99e8342 100644 --- a/jMusicHub.java +++ b/jMusicHub.java @@ -0,0 +1,44 @@ +import java.util.Scanner; + + +/**

jMusicHub

+ * + * The jMusicHub class is basically the app. + * It is used to launch the whole process. + * + * @author Aimeric ADJUTOR + * @version 1.0 + * @since 2020-11-13 + * */ + +public class jMusicHub { + + public static void main(String[] args) { + + System.out.println("Welcome to the jMusicHub !"); + + Scanner scan = new Scanner(System.in); + String userInput; //Used to get the user's inputs. + + System.out.println("Starting extraction"); + //Here will be the process to extract the CSV files + System.out.println("Extraction done"); + //Here will be the number of playlist, albums, songs and auidobook extracted + + do { + System.out.println("What do you want to do? [h for help]"); + userInput = scan.nextLine(); + switch(userInput) { + case "h" : //page help + System.out.printf("c: add a new song\na: add a new album\n+: add an existing song to an album\nl: add a new audiobook\np: create a new playlist from existing songs and audiobooks\n-: delete a playlist\ns: save playlists, albums, songs and audiobooks into the concerned files\nh: print this help screen\nq: quit the program\n"); + break; + case "q" : + System.out.println("Goodbye !"); + break; + default : + System.out.println("Unknown command. Type h for help."); + + } + } while(!userInput.equals("q")); + } +} -- cgit v1.2.3