Java Program of a Genetic Algorithm.