-
Notifications
You must be signed in to change notification settings - Fork 0
/
Person.java
59 lines (48 loc) · 1.04 KB
/
Person.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
56
57
58
59
import java.net.*;
import java.util.ArrayList;
import java.io.*;
public class Person {
String n;
String a;
String h1;
String h2;
String m;
String mb;
String ic;
String is;
public Person(String n, String a, String h1, String h2, String m, String mb, String ic, String is) {
this.n = n;
this.a = a;
this.h1 = h1;
this.h2 = h2;
this.m = m;
this.mb = mb;
this.ic = ic;
this.is = is;
}
public String getName() {
return n;
}
public int getAge() {
return Integer.parseInt(a);
}
public String getH1() {
return h1;
}
public String getH2() {
return h2;
}
public String getMov() {
return m;
}
public String getMb() {
return mb;
}
public String getIc() {
return ic;
}
public String getIs() {
return is;
}
}
//make an arraylist filled with people objects with coressponding attributes -> then we can traverse through this to compare