title: How should I program a simulation of physics?
body: <p>I am trying to create a Java package that can be used to write simulation programs.
  My goal is to create 'objects' like springs or solid objects like cubes and spheres. They will have mass, velocity, gravity etc. and they can interact with each other. </p>
  
  <p>I have seen some simulation programs on <a href="http://www.myphysicslab.com" rel="noreferrer">www.myphysicslab.com</a> but my problem is that I don't want to write different equations for different senarios. Is there any way to do this? I am new to programming.</p>