Can you post the code, in SSCCE form, that does that? It works just fine for me.
Type: Posts; User: KevinWorkman
Can you post the code, in SSCCE form, that does that? It works just fine for me.
public class ForLoopTest {
public static void main(String[] args) {
int i;
for(i = 0; i < 10; i++){
//do something
}
System.out.println(i);
}
}
Why.
Do you love giving incorrect answers? Did you test that at all?
Why not? What happened when you tried?