Bluebox

this is the main class
mail@pastecode.io avatar
unknown
java
7 months ago
990 B
6
Indexable
Never
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.");
        }
    }
}
Leave a Comment