forked from cuongquangnam/CZ2002-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModMovieListView.java
42 lines (30 loc) · 1.02 KB
/
ModMovieListView.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
package com.views;
import com.views.*;
import java.util.Scanner;
import com.controllers.IOController;
public class ModMovieListView extends View {
public void start() {
System.out.println("Please make a selection:");
System.out.println("1. Create movie listing");
System.out.println("2. Edit movie listing");
System.out.println("3. Remove movie listing");
System.out.println("4. Return");
Scanner sc = new Scanner (System.in);
int choice = IOController.readChoice(1, 4);
switch (choice) {
case 1:
intent(this, new CreateMovieView());
break;
case 2:
intent(this, new UpdateMovieView());
break;
case 3:
intent(this, new DeleteMovieView());
break;
case 4:
break;
default:
System.out.println("Invalid selection.");
}
}
}