Orbital dynamics in Java