Vector是1.0的,那时候不是没有泛型为什么这里的Vector、Enumeration能加泛型?
Vector<FileInputStream> v = new Vector<FileInputStream>(); v.add(new FileInputStream("a.txt")); v.add(new FileInputStream("b.txt")); v.add(new FileInputStream("c.txt")); Enumeration<FileInputStream> en =v.elements();
|