import java.util.ArrayList class Test { void foo() { ArrayList l = new ArrayList<>(); } }