Simply execute a block of code a number of times
for (statement 1 ; statement 2 ; statement 3) {
//code blocks
}
Statement 1: it is executed 1 time before reaching the condition of the code.
(int i = 0, int i = variable.length( ))
Statement 2: defines the condition before stopping the loops.
(i < variable.length)
Statement 3: it is executed every time after running the code.
(i++, i- -, i = i+2)