Repository navigation
Expand file tree
/
Copy pathStart.java
More file actions
52 lines (42 loc) · 1.39 KB
/
Copy pathStart.java
File metadata and controls
52 lines (42 loc) · 1.39 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import java.util.Scanner;
public class Start {
public static void main(String[] args) {
// objects
Scanner scnr = new Scanner(System.in);
// variables
int userInput;
System.out.println("Welcome to Joey's Pizza! What can we make for you?");
System.out.println("Type a number to choose:\n 1.Pizza \n 2.Pasta \n 3.Subs");
userInput = scnr.nextInt();
switch (userInput) {
case 1:
System.out.println("You have order a pizza");
break;
case 2:
System.out.println("You have order Pasta");
break;
case 3:
System.out.println("You have order a subsandwhich");
break;
default:
System.out.println("That was not an option goodbye");
break;
}
}
public static string pizza =
" ____\n" +
" _,--~~ ~~--._\n" +
" ,/' m%%%%%%=@%%m `\\.\n" +
" /' m%%o(_)%%o%%%%o%%m `\\\n" +
" /' %%@=%o%%%o%%%o%(_)o%%% `\\\n" +
" / %o%%%%%=@%%%(_)%%o%%@=%% \\\n" +
" | (_)%(_)%%o%%%o%%%%=@(_)%%% |\n" +
" | %%o%%%%o%%%(_)%%o%%o%%%%o%%% |\n" +
" | %%o%(_)%%%%%o%(_)%%%o%%o%o%% |\n" +
" | (_)%%=@%(_)%o%o%%(_)%o(_)% |\n" +
" \\ ~%%o%%%%%o%o%=@%%o%%@%%o%~ /\n" +
" \\. ~o%%(_)%%%o%(_)%%(_)o~ ,/\n" +
" \\_ ~o%=@%(_)%o%%(_)%~ _/\n" +
" `\\_~~o%%%o%%%%%~~_/'\n" +
" `--..____,,--'\n";
}