Anonymous
public text v1 · immutable public void atrisk() {
for (ArrayList<Double> it : atrisk_data) {
for (Cell cell : cells) {
if (cell.getss() == it.get(0)
&& cell.getgs() == GOLDNA) {
cell.setchanger(-1 * it.get(1) * cell.getamount());
for (Cell cell_two : cells) {
if (cell_two.getage() == cell.getage()
&& cell_two.getsex() == cell.getsex()
&& cell_two.getcs() == cell.getcs()
&& cell_two.getss() == cell.getss()
&& cell_two.getgs() == GOLDAR) {
cell_two.setchanger(it.get(1) * cell.getamount());
}
}
}
}
}
}