-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSurname.java
More file actions
50 lines (43 loc) · 1.02 KB
/
Surname.java
File metadata and controls
50 lines (43 loc) · 1.02 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
48
49
50
package edu.cscc;
/**
* @author Kelly Waddell
* 10/29/2019 Census Main class
*/
public class Surname {
private String name;
private int rank;
private int count;
private double proportion;
//Constructor
public Surname(String name, int rank, int count, double proportion) {
this.name = name;
this.rank = rank;
this.count = count;
this.proportion = proportion;
}
//Getters and Setters
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getRank() {
return rank;
}
public void setRank(int rank) {
this.rank = rank;
}
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public double getProportion() {
return proportion;
}
public void setProportion(double proportion) {
this.proportion = proportion;
}
}