import java.util.*; public class Time { private double time; public void gravity(double y) { this.time = (this.time+0.01); } public double getTime() { return time; } }