七段

          無論怎樣,請讓我先感謝一下國家。

          BlogJava 首頁 新隨筆 聯系 聚合 管理
            35 Posts :: 2 Stories :: 7 Comments :: 0 Trackbacks
          Collection>
              boolean contains(Object o):return true only if has (o==null ? e==null :o.equals(e))
              boolean removeAll(Collection<?> c); remove elements in c
              boolean retainAll(Collection<?> c); remove elements not in c
              Queue VS List VS Set
              List>
                  ListIterator<E> listIterator();| Iterator<E> iterator();
                  next() & previous()|only has next()
                  add() & remove()|only has remove()
                  * you can not use list.add() during both two iteration, otherwise,ConcurrentModificationException

          RandomAccess>
                  Marker interface used by List implementations to indicate that they support fast (generally constant time) random access. e.g.
                  for (int i=0, n=list.size(); i < n; i++)
                           list.get(i);
                  runs faster than this loop:
                       for (Iterator i=list.iterator(); i.hasNext(); )
                           i.next();

          HashMap, HashSet, HashTable>
              HashMap(int initialCapacity, float loadFactor)        resize()
              HashSet(int initialCapacity, float loadFactor) {map = new HashMap<E,Object>(initialCapacity, loadFactor);}
              Hashtable(int initialCapacity, float loadFactor) extends Dictionary<K,V>  ; synchronized ;  rehash();
              hash = hash(key.hashCode());
              *TreeMap Red-black mechanics
          posted on 2009-12-21 23:04 sevenduan 閱讀(831) 評論(0)  編輯  收藏 所屬分類: Java
          主站蜘蛛池模板: 随州市| 丁青县| 杭锦后旗| 永德县| 彩票| 丹寨县| 缙云县| 锡林浩特市| 连城县| 玛纳斯县| 个旧市| 承德市| 太仆寺旗| 藁城市| 密云县| 太仓市| 大连市| 威宁| 石河子市| 南木林县| 乐山市| 邵武市| 讷河市| 延安市| 邓州市| 扎鲁特旗| 香格里拉县| 莱阳市| 隆化县| 驻马店市| 承德市| 漳浦县| 石门县| 积石山| 绩溪县| 雅江县| 青神县| 水城县| 剑阁县| 宜昌市| 鲁山县|