for(int i = 0; // i is an variable integer, which is 0 from the start
i < 10; // if i is 10 or above, the loop is finished, else the code runs
i += 2) // after the code is ran, 2 will be added to the variable i
{/*...*/}
solved What is the mechanism? [duplicate]