blob: c95e1e660da8fe53daeac737a3fcf274c28c61cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
import java.util.Scanner;
/** <h1>jMusicHub</h1>
*
* 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;
case "c":
break;
case "a":
break;
case "+":
break;
case "l":
break;
case "p":
break;
case "-":
break;
default :
System.out.println("Unknown command. Type h for help.");
}
} while(!userInput.equals("q"));
}
}
|