-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
26 lines (20 loc) · 946 Bytes
/
Main.java
File metadata and controls
26 lines (20 loc) · 946 Bytes
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
package com.dj;
public class Main {
public static void main(String[] args) {
var nationalUSParks = new Park[]{
new Park("Yellowstone", "44.4882, -110.5916"),
new Park("Grand Canyon", "36.1085, -112.0965"),
new Park("Yosemite", "37.8855, -119.5360")
};
Layer<Park> parkLayer = new Layer<>(nationalUSParks);
parkLayer.renderLayer();
var majorUSRivers = new River[]{
new River("Mississippi", "47.2160, -95.2348", "29.1566, -89.2495", "35.1556, -90.0659"),
new River("Missouri", "45.9239, -111.4983", "38.8146, -90.1218"),
};
Layer<River> riverLayer = new Layer<>(majorUSRivers);
riverLayer.addElements(new River("Colorado", "40.41708, -105.8286", "31.7811, -114.7724"),
new River("Delaware", "42.2026, -75.00836", "39.4955, -75.5592"));
riverLayer.renderLayer();
}
}