java for loop add multiple declarations

Java
All declarations must be initialized at the beginning
of a for loop and must be of the same type
Ex: for(int i = 0, k = 1, j = 23; boolean; post code)
Source

Also in Java: