Java version generates a unique numbered program