// "Unroll loop" "true-preview" class Test { void test(Object y) { for(Object x : new Object[] {"one", 1, 1.0, 1.0f}) { System.out.println(x); if(Math.random() > 0.5) break; } } }