forked from cuongquangnam/CZ2002-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainView.java
46 lines (34 loc) · 1.21 KB
/
MainView.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.views;
import java.util.Scanner;
import com.controllers.*;
import com.views.View;
public class MainView extends View {
public void start()
{
Scanner sc = new Scanner(System.in);
System.out.println("MOvie Booking and LIsting Management Application (MOBLIMA)");
System.out.println("Welcome, please make a selection:");
System.out.println("1. Moviegoer Menu");
System.out.println("2. Staff Menu");
System.out.println("3. Exit application");
int choice = IOController.readChoice(1,3);
switch (choice) {
case 1:
intent(this, new MovieGoerView());
break;
case 2:
intent(this, new LoginView());
break;
case 3:
System.out.println("Bye, hope to see you again!");
break;
default:
System.out.println("Invalid selection.");
}
}
// public static void main(String[] args)
// {
// MainView mainview = new MainView();
// mainview.start();
// }
}