-
Notifications
You must be signed in to change notification settings - Fork 0
/
Day.java
60 lines (46 loc) · 1.05 KB
/
Day.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
60
package org.move.system;
import java.util.ArrayList;
public class Day {
private ArrayList<Fitness> fitness;
private double totalCalories;
private double totalDistance;
private int totalSteps;
private int totalFlightsOfStairs;
public Day() {
fitness = new ArrayList<Fitness> ();
totalCalories = 0.0;
totalDistance = 0.0;
totalSteps = 0;
totalFlightsOfStairs = 0;
}
public ArrayList<Fitness> getFitness() {
return fitness;
}
public void setFitness(Fitness newFitness) {
fitness.add(newFitness);
}
public double getCalories() {
return totalCalories;
}
public void setCalories(double calories) {
totalCalories = calories;
}
public double getDistance() {
return totalDistance;
}
public void setDistance(double distance) {
totalDistance = distance;
}
public int getSteps() {
return totalSteps;
}
public void setSteps(int steps) {
totalSteps = steps;
}
public int getFlightofStairs() {
return totalFlightsOfStairs;
}
public void setFlightofStairs(int stairs) {
totalFlightsOfStairs = stairs;
}
}