Or you must use the fully qualified name of the class every time it is mentioned. import java.util.Vector; public class MainClass { public static void main(String[] argv) { System.out.println(new Vector()); System.out.println(new java.util.ArrayList()); } }