import java.util.*; public class Test { List<Integer> f; void foo() { Integer i = Collections.min(f); } }