A simple for statement would be:
for(int i = 0/*A Optional*/; i < 10/*B Optional*/; i++/*C Optional*/) {
}
Now how many variables can I initialize in the initialization code(A) of the for statement?
Also how would I initialize these variables in the initialization code(A) of the for statement?
As many as you care to write, but declaration is restricted to the same type. (For just initialization see the expansion below and Wugs answer.)
The (optional) ForInit section can be:
The example code above with declarations is of the form
for(LocalVariableDeclaration;;).