Bluebox
this is the main classunknown
java
2 years ago
990 B
12
Indexable
import java.util.Scanner;
import java.util.ArrayList;
public class BlueBox {
private static ArrayList<Movie> action = new ArrayList<>();
private static ArrayList<Movie> comedy = new ArrayList<>();
private static ArrayList<Movie> romance = new ArrayList<>();
private static ArrayList<Movie> horror = new ArrayList<>();
private static ArrayList<Movie> kids = new ArrayList<>();
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
System.out.print("Welcome to BlueBox! Are You a Customer or an Admin?");
String userType = keyboard.next();
if (userType.equalsIgnoreCase("Customer")) {
CustomerMenu.displayMenu(keyboard, action, comedy, romance, horror, kids);
} else if (userType.equalsIgnoreCase("Admin")) {
AdminMenu.displayMenu(keyboard, action, comedy, romance, horror, kids);
} else {
System.out.println("Invalid user type.");
}
}
}
Editor is loading...
Leave a Comment