@Test public void add7(){ TreeMap<Long,String> treeMap = new TreeMap<Long, String>() ; long star = System.currentTimeMillis() ; for (int i = 0; i < count; i++) { double d = Math.random(); int ran = (int)(d*100); treeMap.put(Long.valueOf(i + ran) ,"127.0.0." + i); } long end = System.currentTimeMillis() ; System.out.println("耗时 " + (end -star)); System.out.println(treeMap.size()); }
public int size() { return size; }
SortArrayMap { public int size() { return size; } }
SortArrayMap { public int size() { return size; } SortArrayMap(); }
SortArrayMap { public int size() { return size; } SortArrayMap(); void add(Long key, String value); String firstNodeValue(long key); void sort(); void print(); int size(); void clear(); }
SortArrayMap { public int size() { return size; } SortArrayMap(); void add(Long key, String value); String firstNodeValue(long key); void sort(); void print(); int size(); void clear();  }