package entities; public class Time { private double value = 0.0; public void gravity(double y) { this.value = (this.value+0.01); } public double getValue() { return value; } }