-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lab02.java
57 lines (45 loc) · 1.23 KB
/
Lab02.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package lab02;
import java.util.List;
public class Lab02 {
public static void main(String[] args) {
}
}
class Car {
String make;
String model;
int year;
List<Recall> recall;
public Car(String make, String model, int year, List<Recall> recall) {
this.make = make;
this.model = model;
this.year = year;
this.recall = fetchRecalls();
}
private List<Recall> fetchRecalls() {
try {
Thread.sleep(2000);
} catch (InterruptedException ex) {
ex.printStackTrace();
}
return null;
}
}
public class Recall {
private static int count;
private static String message;
private String manufacturer;
private boolean parkIt;
private boolean parkOutSide;
private String nhtsaActionNumber;
private String component;
private String consequence;
private String nhtsaCampaignNumber;
private String notes;
private String remedy;
private Date reportReceivedDate;
private String summary;
}