, for while, "" : ,
for(int i = 0; i < 10; i++){
...
}
:
int i = 0;
while(i < 10){
...
i++;
}
, for , , , , . , , , . , , , :
for(int i = 0; i < 5; System.out.println("i before" + i),i++, System.out.println("i after" + i)){
System.out.println("Inside");
}
:
Inside
i before0
i after1
Inside
...
Just like a side element: I would definitely not use it like that, because it just makes the code more difficult to understand, and there is no real benefit to it.
source
share