public class SomeClass { void doSomeFor() { int a,b; for (int i = 0; i < 10; i++) a = b = i; } }