国开 / 面向对象程序设计
Public class Test {
Public static void main(String[] args) {
Vector teamList = new Vector();
teamList.add("Z");
teamList.add("L");
teamList.add("W");
teamList.remove(0);
teamList.remove(0);
System.out.println(teamList.size()+","+teamList.get(0));
}
}
2,W
1,W
Public static void main(String[] args) {
Vector teamList = new Vector();
teamList.add("Z");
teamList.add("L");
teamList.add("W");
teamList.remove(0);
teamList.remove(0);
System.out.println(teamList.size()+","+teamList.get(0));
}
}
2,W
1,W
参考答案:
佳题速递: