
c2 = chromosome1.getGene(i).toString();
</BUG>
}
<BUG>}
List<BinaryChromosome> lst = new ArrayList<BinaryChromosome>(2);

lst.add(new BinaryChromosome(size, c1));
lst.add(new BinaryChromosome(size, c2));
return lst;</BUG>
}

import java.util.List;
public class UniformCrossover implements ICrossover<IChromosome>{
public UniformCrossover() {}
@Override
public List<IChromosome> Compute(IChromosome chromosome1, IChromosome chromosome2) {
List<Object> c1 = new ArrayList<Object>(chromosome1.getLength());
List<Object> c2 = new ArrayList<Object>(chromosome1.getLength());
int size = chromosome1.getLength();
for (int i = 0; i < size; i++) {
if(Math.random() <= 0.5){
c1.add(chromosome1.getGene(i));
c2.add(chromosome2.getGene(i));
