- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTimeToShip.java
More file actions
Latest commit
19 lines (14 loc) · 521 Bytes
/
Copy pathTimeToShip.java
File metadata and controls
19 lines (14 loc) · 521 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
publicclassTimeToShip {
publicstaticvoidmain(String[] args) {
// TODO Auto-generated method stub
Box<Nokia> boxOfPhones = newBox<>();
// boxOfPhones.add(new Nokia());
Box<Blackberry> boxOfPhones2 = newBox<>();
// Create a shipment of Nokia phones
ShippingOrder<String, Box<Nokia>> so1=
newShippingOrder<> ("ph1234", boxOfPhones);
// Create a shipment of Blackberry phones
ShippingOrder<String, Box<Blackberry>> so2=
newShippingOrder<> ("ph4321", boxOfPhones);
}
}