-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMain.java
32 lines (28 loc) · 961 Bytes
/
Main.java
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
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
System.out.println("*** Welcome to Chick-Fil-A ***");
int option = 1;
Order order = new Order();
while (option != 0) {
System.out.println("");
System.out.println("1. Drink");
System.out.println("2. Fries");
System.out.println("3. Salad");
System.out.println("4. Shake");
System.out.println("5. Chicken Nuggies");
System.out.println("6. Chicken sandwich");
System.out.println("0. Done");
System.out.print("Select an option: ");
Scanner scanner = new Scanner(System.in);
option = scanner.nextInt();
switch (option) {
case 0:
order.printOrder();
break;
//put more cases below this comment
}
}
}
}