added GravityCalculator program written in java.