Java, Simulation, Programming, Science, Coding.
that later. So I created a class namely Particle with the following properties private double rx, ry; private double vx, vy; private final double radius; private final double mass; private int count; int r, g, b; Here rx and ry represents the x and y coordinates whereas vx and vy represent x and y