diff --git a/.idea/misc.xml b/.idea/misc.xml index a165cb3..cbb200f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/flashcards/Main.java b/src/flashcards/Main.java index d1b036c..f452ff8 100644 --- a/src/flashcards/Main.java +++ b/src/flashcards/Main.java @@ -2,6 +2,6 @@ public class Main { public static void main(String[] args) { - System.out.print("Hello world!"); + cards.mainMenu(); } } \ No newline at end of file diff --git a/src/flashcards/cards.java b/src/flashcards/cards.java new file mode 100644 index 0000000..d8453ce --- /dev/null +++ b/src/flashcards/cards.java @@ -0,0 +1,49 @@ +package flashcards; + +import java.util.*; + +public class cards { + //main subroutine for choosing menu items + protected static void mainMenu(){ + Scanner scan = new Scanner(System.in); + System.out.print("Input the action (add, remove, import, export, ask, exit): "); + String menuChoice = scan.nextLine(); + switch (menuChoice){ + case "add": + break; + case "remove": + break; + case "import": + break; + case "export": + break; + case "ask": + break; + case "exit": + exit(); + break; + } + } + //subroutine for adding cards + protected static void addCard(){ + + } + //subroutine for removing cards + protected static void removeCard(){ + } + //subroutine for import + protected static void importCard(){ + } + //subroutine for export + protected static void exportCard(){ + } + //subroutine for asking user + protected static void askCard(){ + } + //exit subroutine + protected static void exit(){ + System.out.println("Bye bye!"); + System.exit(0); + } + +}