class Test { void foo(int i, int... j) { if (i == 0) { for (int idx : j) { } } } }