111112113114115116117118119120121
// handle cut section for (int i = 0; i < geneLength; i++) { if (!((i < cutpoint1) || (i > cutpoint2))) { offspring1.copy(father,i,i); offspring2.copy(mother,i,i); taken1.add(father.getData()[i]); taken2.add(mother.getData()[i]); } }