Added Java version of the version sorting program.