-
Notifications
You must be signed in to change notification settings - Fork 273
Expand file tree
/
Copy pathInitialData.java
More file actions
47 lines (38 loc) · 1.47 KB
/
Copy pathInitialData.java
File metadata and controls
47 lines (38 loc) · 1.47 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package subway.constant;
import subway.domain.Line;
import subway.domain.Station;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class InitialData {
public static final List<Station> stations = new ArrayList<>(Arrays.asList(
new Station("교대역"),
new Station("강남역"),
new Station("역삼역"),
new Station("남부터미널역"),
new Station("양재역"),
new Station("양재시민의숲역"),
new Station("매봉역")
));
private static final List<Station> lineTwoStations = new ArrayList<>(Arrays.asList(
new Station("교대역"),
new Station("강남역"),
new Station("역삼역")
));
private static final List<Station> lineThreeStations = new ArrayList<>(Arrays.asList(
new Station("교대역"),
new Station("남부터미널역"),
new Station("양재역"),
new Station("매봉역")
));
private static final List<Station> lineSinbundangStations = new ArrayList<>(Arrays.asList(
new Station("강남역"),
new Station("양재역"),
new Station("양재시민의숲역")
));
public static final List<Line> lines = new ArrayList<>(Arrays.asList(
new Line("2호선", lineTwoStations),
new Line("3호선", lineThreeStations),
new Line("신분당선", lineSinbundangStations)
));
}