-
Notifications
You must be signed in to change notification settings - Fork 273
Expand file tree
/
Copy pathServices.java
More file actions
32 lines (27 loc) · 1 KB
/
Copy pathServices.java
File metadata and controls
32 lines (27 loc) · 1 KB
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 subway.domain;
import subway.domain.management.LineManager;
import subway.domain.management.SectionManager;
import subway.domain.menu.MainMenu;
import subway.domain.management.StationManager;
import java.util.Scanner;
public class Services {
public static void doService(String inputData, Scanner scanner) {
if (inputData.equals(MainMenu.STATION.getOrder())) {
StationManager stationManager = new StationManager(scanner);
stationManager.doStationManagement();
return;
}
if (inputData.equals(MainMenu.LINE.getOrder())) {
LineManager lineManager = new LineManager(scanner);
lineManager.doStationManagement();
return;
}
if (inputData.equals(MainMenu.SECTION.getOrder())) {
SectionManager sectionManager = new SectionManager(scanner);
sectionManager.doStationManagement();
return;
}
if (inputData.equals(MainMenu.MAP.getOrder())) {
}
}
}