-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathYearRange.java
More file actions
44 lines (32 loc) · 969 Bytes
/
YearRange.java
File metadata and controls
44 lines (32 loc) · 969 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.company;
public class YearRange {
private int FirstYear;
private int SecondYear;
private int FirstDivisor;
private int SecondDivisor;
private int RangeType;
public YearRange(int FirstDivisor, int SecondDivisor) {
this.FirstDivisor = FirstDivisor;
this.SecondDivisor = SecondDivisor;
}
public int getFirstYear() {
return FirstYear;
}
public int getSecondYear() {
return SecondYear;
}
public int getFirstDivisor() {
return FirstDivisor;
}
public int getSecondDivisor() {
return SecondDivisor;
}
public void setRangeType(int RangeType){
this.RangeType = RangeType;
}
public void printYears(){
System.out.println("FirstDivisor: "+FirstDivisor);
System.out.println("SecondDivisor: " +SecondDivisor);
System.out.println("Years: " +FirstYear);
}
}