Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ArrayList<Thief> ranking(){
- ArrayList<Thief> winners = new ArrayList<>();
- population.thieves.sort(Thief::compareTo);
- for(int i = 0; i<POPULATION_SIZE; i++){
- for(int j = 0; j<20; j++){
- winners.add(population.thieves.get(j));
- }
- }
- return winners;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement