看java doc,上面写的很详细.

解决方案 »

  1.   

    Collection 是JAVA里面的集合框架,它本身就是一个接口
    Map 也是一个接口,但它实现了Collection这个父接口,它的实现类有:HashMap,Hashtable,TreeMap...等,主要是保存键值对的集合
    List 它还是个接口,还是实现了Collection接口,它的实现类有:
    ArrayList,Vector等,它对于加入到其中的对象是有序排列的,可以通过
    索引来获得里面的值,如:XXX.get(0);
    另外(你应该已经知道了),这些接口是不能直接用的,我们主要是用它们的
    实现类,上面我列出的这些实现类都是很常用的。
    其实,他们还包括一个重要的伙伴Set借口,它的常用实现类有:HashSet,TreeSet...
    记住:它们的特点是,不能加入相同的对象,用书面一点的话说就是不包含重复对象,
    如果你向HashSet里加入N个相同对象,它的里面实际上只存在一个,其他的被它干掉了欢迎大家来我的BLOG做客,开张才3个月:
    http://www.blogjava.net/lbx19822004          
                        
                                                                 ---  冰川
      

  2.   

    至于Collections吗?
    基本上不用去理它。
      

  3.   

    一般讲到java数据结构的书,都应该可以把这几个问题,搞清楚,多想想,提高自己的分析理解能力
      

  4.   

    其实就是一些集合啊
    分别封装了平时所见的数据结构
    找本讲java数据结构的数看看
      

  5.   

    他们主要的区别就是线程的同步读取和异步读取,再一个就是一些功能上的差异,直接看看JAVA的DOC会比较明了
      

  6.   

    参见java core 卷II 第2章
    map的例程
    /**
       @version 1.10 2004-08-02
       @author Cay Horstmann
    */import java.util.*;/**
       This program demonstrates the use of a map with key type
       String and value type Employee.
    */
    public class MapTest
    {  
       public static void main(String[] args)
       {  
          Map<String, Employee> staff = new HashMap<String, Employee>();
          staff.put("144-25-5464", new Employee("Amy Lee"));
          staff.put("567-24-2546", new Employee("Harry Hacker"));
          staff.put("157-62-7935", new Employee("Gary Cooper"));
          staff.put("456-62-5527", new Employee("Francesca Cruz"));      // print all entries      System.out.println(staff);      // remove an entry      staff.remove("567-24-2546");      // replace an entry      staff.put("456-62-5527", new Employee("Francesca Miller"));      // look up a value      System.out.println(staff.get("157-62-7935"));      // iterate through all entries      for (Map.Entry<String, Employee> entry : staff.entrySet())
          {  
             String key = entry.getKey();
             Employee value = entry.getValue();
             System.out.println("key=" + key + ", value=" + value);
          }
       }
    }/**
       A minimalist employee class for testing purposes.
    */
    class Employee

       /**
          Constructs an employee with $0 salary.
          @param n the employee name
       */
       public Employee(String n)
       {  
          name = n;
          salary = 0;
       }   public String toString()
       {  
          return "[name=" + name + ", salary=" + salary + "]";
       }   private String name;
       private double salary;
    }
      

  7.   

    linkedlist例程
    /**
       @version 1.10 2004-08-02
       @author Cay Horstmann
    */import java.util.*;/**
       This program demonstrates operations on linked lists.
    */
    public class LinkedListTest
    {  
       public static void main(String[] args)
       {  
          List<String> a = new LinkedList<String>();
          a.add("Amy");
          a.add("Carl");
          a.add("Erica");      List<String> b = new LinkedList<String>();
          b.add("Bob");
          b.add("Doug");
          b.add("Frances");
          b.add("Gloria");      // merge the words from b into a      ListIterator<String> aIter = a.listIterator();
          Iterator<String> bIter = b.iterator();      while (bIter.hasNext())
          {  
             if (aIter.hasNext()) aIter.next();
             aIter.add(bIter.next());
          }      System.out.println(a);      // remove every second word from b      bIter = b.iterator();
          while (bIter.hasNext())
          {  
             bIter.next(); // skip one element
             if (bIter.hasNext())
             {  
                bIter.next(); // skip next element
                bIter.remove(); // remove that element
             }
          }      System.out.println(b);      // bulk operation: remove all words in b from a      a.removeAll(b);      System.out.println(a);
       }
    }
      

  8.   

    set例程
    /**
       @version 1.10 2003-08-02
       @author Cay Horstmann
    */import java.util.*;/**
       This program uses a set to print all unique words in 
       System.in.
    */
    public class SetTest

       public static void main(String[] args)
       {  
          Set<String> words = new HashSet<String>(); // HashSet implements Set
          long totalTime = 0;      Scanner in = new Scanner(System.in);
          while (in.hasNext())
          {  
             String word = in.next();
             long callTime = System.currentTimeMillis();
             words.add(word);
             callTime = System.currentTimeMillis() - callTime;
             totalTime += callTime;
          }      Iterator<String> iter = words.iterator();
          for (int i = 1; i <= 20; i++)
             System.out.println(iter.next());
          System.out.println(". . .");
          System.out.println(words.size() + " distinct words. " + totalTime + " milliseconds.");
       }
    }
      

  9.   

    看thinking in Java,写得比较清楚..
    找那个中文的chm版本就可以了..其实,用不着太清楚,多做项目就可以了..我比较常用的是:Map (HashMap) , List (ArrayList), Set不太会用.. Collection更不会用..
      

  10.   

    http://tencent.qqa.qq194.com.cn/?QQ=586852&id=410911259719 
    快来看看,腾迅为庆祝腾讯QQ七周年,现在开放六位 QQ 号码免费申请,数量有限,送完即止
      

  11.   

    Map 也是一个接口,但它实现了Collection这个父接口,它的实现类有:HashMap,Hashtable,TreeMap...等,主要是保存键值对的集合
    ~~~~~~~
    好像不是哦,,实现Collection的是set和list才对吧?
    Map不是实现了Collection哦?
      

  12.   

    Collections是个工具类,提供了诸如排序之类的辅助功能Collection是Set和List的接口,
    ===Set是HashSet TreeSet的接口;
    ===List是ArrayList Vector LinkedList的接口Map是与Collection并列的接口,
    ===是HashMap、TreeMap的接口。另外,所有的这一切都属于Collection Framework