2012-08-30 59 views

回答

1

它的工作原理是这样的:

LinkedList<node> tmp = new LinkedList<node>(); 
tmp.add(new node()); 
this.db.add(tmp); 
1

这将是

db.get(hash).add(element); 
当然

要求你的水桶(LinkedList S)已经被实例化。

0
ArrayList<LinkedList<node>> db = new ArrayList<LinkedList<node>>(); 
LinkedList<node> linkList= new LinkedList<node>(); 
node no = new node(); 

this.linkList.add(no); 
this.db.add(tmp);