Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public ArrayList<Thief> ranking(){
  2. ArrayList<Thief> winners = new ArrayList<>();
  3. population.thieves.sort(Thief::compareTo);
  4. for(int i = 0; i<POPULATION_SIZE; i++){
  5. for(int j = 0; j<20; j++){
  6. winners.add(population.thieves.get(j));
  7. }
  8. }
  9. return winners;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement