调用Vector的构造函数,该构造函数使用现有集合(在本例中为数组)初始化自身:
String[] strings = { "Here", "Are", "Some", "Strings" };Vector<String> vector = new Vector<String>(Arrays.asList(strings));
调用Vector的构造函数,该构造函数使用现有集合(在本例中为数组)初始化自身:
String[] strings = { "Here", "Are", "Some", "Strings" };Vector<String> vector = new Vector<String>(Arrays.asList(strings));