Some swarm physics in Java