import java.util.List; public class Test { List<Integer> f; void foo() { for (Integer i : f) {} } }