for (int i = 0; i < 12; i++) {
values.add(0);
}
values.add(mn.getCurrentIsland(),values.get(mn.getCurrentIsland())+1);
for (int i = 0; i < 100; i++) {
mn = new MotherNature();
values.add(mn.getCurrentIsland(),values.get(mn.getCurrentIsland())+1);
}
Thank you for the help. I just changed those numbers into constants, in the next days we will search into the whole code for other situations like this.
for (int i = 0; i < 12; i++) { values.add(0); } values.add(mn.getCurrentIsland(),values.get(mn.getCurrentIsland())+1); for (int i = 0; i < 100; i++) { mn = new MotherNature(); values.add(mn.getCurrentIsland(),values.get(mn.getCurrentIsland())+1); }