七段

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

          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
          主站蜘蛛池模板: 卢氏县| 开江县| 永年县| 林甸县| 林周县| 锡林浩特市| 克拉玛依市| 左云县| 鄂伦春自治旗| 勐海县| 山阳县| 藁城市| 禄劝| 牟定县| 泸溪县| 武城县| 巴彦县| 伽师县| 潢川县| 武夷山市| 锡林郭勒盟| 遂昌县| 大荔县| 贵溪市| 水富县| 南汇区| 武宣县| 明星| 武功县| 集安市| 汨罗市| 理塘县| 涞源县| 井冈山市| 沙坪坝区| 班戈县| 略阳县| 洛隆县| 鹤庆县| 小金县| 渭南市|