[求助]TreeSet问题求助
package collcetion;
import java.util.*;
public class TreeSetDemo {
public static void main (String[]args){
Vector vector=new Vector();
TreeSet treeset=new TreeSet();
for (int i=0;i<16;i++){
int number =(int) Math.round(Math.random()*10);
vector.add(new Integer(number));
treeset.add(new Integer(number));
}
System.out.println("Vector的集合内容="+vector);
System.out.println("TreeSet的集合内容"+treeset);
System.out.println("treeset.contains(vector.get(0))="+treeset.contains(vector.get(0)));//请问下这里的get(0)什么意思呀?
}
}