public class SomeClass { void doSomeIf(int i) { int a,b,c if (i < 0) a = b = i; else b = c = i; } }