-
Notifications
You must be signed in to change notification settings - Fork 701
Expand file tree
/
Copy pathMenuBuilder.java
More file actions
32 lines (20 loc) · 928 Bytes
/
MenuBuilder.java
File metadata and controls
32 lines (20 loc) · 928 Bytes
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
package _01_05b;
//import java.util.ArrayList;
public class MenuBuilder {
public static void main(String[] args) {
// Create a variable called menuTitle of type String and assign it the value "My
// Dream Menu:".
// Print the menuTitle variable to the console.
// Create a variable called menu of type ArrayList.
// Create a variable called starter of type MenuItem and pass in the name of
// your favourite starter.
// Add the starter variable to the ArrayList called menu.
// Create a variable called mainCourse of type MenuItem and pass in the name of
// your favourite main course.
// Add the mainCourse variable to the ArrayList called menu.
// Create a variable called dessert of type MenuItem and pass in the name of
// your favourite dessert.
// Add the dessert variable to the ArrayList called menu.
// Print the menu variable to the console.
}
}