class IndividualUtils {

    public static Individual[] makeCopy(Individual[] sourceIndividuals, int birthday){
        if (sourceIndividuals == null){
            return null;
        }
        Individual[] copies = new Individual[sourceIndividuals.length];
        for (int i = 0; i < sourceIndividuals.length; i++){
            if (sourceIndividuals[i] != null){ // in the future, there might be null individuals in the Population
                copies[i] = sourceIndividuals[i].copy(birthday);
            }
        }
        return copies;
    }

}