一、问答题
1.LinkedList使用链式存储结构,ArrayList使用顺序存储结构。
2.迭代器遍历在找到集合中的一个对象的同时,也得到待遍历的后继对象的引用,因此迭代器可以快速地遍历集合。
3.不是。
4.用HashMap<K,V>来存储。
二、阅读程序
1.8。
2.ABCD。
三、编写程序
1. import java.util.*;
public class E {
public static void main(Stringargs[]) {
Stack<Integer>stack=new Stack<Integer>();
stack.push(new Integer(3));
stack.push(new Integer(8));
int k=1;
while(k<=10) {
for(int i=1;i<=2;i++){
Integer F1=stack.pop();
int f1=F1.intValue();
Integer F2=stack.pop();
int f