-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfitness.java
More file actions
58 lines (45 loc) · 1.08 KB
/
fitness.java
File metadata and controls
58 lines (45 loc) · 1.08 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
51
52
53
54
55
56
57
package com.example.jproject;
public class fitness {
private int GoalID;
private String GoalType;
private double TargetVal;
private String TargetDate;
private boolean achieved;
public fitness() {
GoalID=0;
GoalType="null";
TargetVal=30.0;
TargetDate="01-01-2024";
achieved=true;
}
public int getGoalID() {
return GoalID;
}
public boolean isAchieved() {
return achieved;
}
public double getTargetVal() {
return TargetVal;
}
public void setAchieved(boolean achieved) {
this.achieved = achieved;
}
public String getGoalType() {
return GoalType;
}
public String getTargetDate() {
return TargetDate;
}
public void setGoalType(String goalType) {
GoalType = goalType;
}
public void setGoalID(int goalID) {
GoalID = goalID;
}
public void setTargetDate(String targetDate) {
TargetDate = targetDate;
}
public void setTargetVal(double targetValue) {
TargetVal = targetValue;
}
}