Java, Simulation, Programming, Science, Coding.
order to mimic the collision which eventually updates the velocity of the particles. And if either of these two particles are null then they are bounced off x or y axes respectively. Finally, we predict the new straight line trajectory for both particles. At the end, we have a complete Molecular