Hey,
folgende Loop setzt i immer wieder auf 0 zurück:
Warum? Als ob die foreach immer die Aussgangswerte annehmen lässt...
folgende Loop setzt i immer wieder auf 0 zurück:
Java:
int i = 0;
double step = 3;
for(ArrayList<Double> function : functions) {
while(i*step <= function.get(5)) {
double x = i*step;
g.fillOval((int)(i*step), (int)(startPos.getY() + functions.get(functioncounter).get(0)*x*x*x+
functions.get(functioncounter).get(1)*x*x+functions.get(functioncounter).get(2)*x+
functions.get(functioncounter).get(3)), 10, 10);
i += 1;
}
}
Warum? Als ob die foreach immer die Aussgangswerte annehmen lässt...
Zuletzt bearbeitet: