You need to do it a pair at once rather than all at once:
int[] genotype = concat(chromosome0, chromosome1);
genotype = concat(genotype, chromosome2);
genotype = concat(genotype, chromosome3);
// and so on...
You need to do it a pair at once rather than all at once:
int[] genotype = concat(chromosome0, chromosome1);
genotype = concat(genotype, chromosome2);
genotype = concat(genotype, chromosome3);
// and so on...