I've just started learning java and now i'm into for loop statements. I don't understand how ++i and i++ works in a for-loop. How do they work in mathematics operations like addition and subtraction?

There's absolutely no reason not to, and if.