-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLA3Test.java
More file actions
37 lines (31 loc) · 1 KB
/
LA3Test.java
File metadata and controls
37 lines (31 loc) · 1 KB
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
package wmich.edu.cs1120.LA3_Lee;
import java.io.*;
import java.util.Scanner;
public class LA3Test {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
Scanner keyboard = new Scanner(System.in);
IController control = new Controller(keyboard);
control.readInput("input.txt");
String response = "";
boolean quitFlag = false;
while (!quitFlag) {
control.showMenu();
response = keyboard.nextLine();
System.out.println();
switch (response) {
case "1":
control.displayCollection();
break;
case "2":
control.checkoutMaterials();
break;
case "3":
quitFlag = true;
break;
}
}
System.out.println("Good bye!");
keyboard.close();
}
} // End of main class