比较了一下
:http://blog.csdn.net/iilovetopview/article/details/43745059
发现还是D语言的快。...
分类:
编程语言 时间:
2015-02-23 09:41:15
阅读次数:
345
Java8之前,如果想根据map的value值来排序话,比较繁琐参看如何将HashMap,按照value值排序
现在借助于lambda表达式,就方便多了。
Map map=new HashMap<>();
map.put("derek",24 );
map.put("dad", 51);
map.put("mom", 46);
List> list=new ArrayList...
分类:
其他好文 时间:
2015-02-22 23:07:08
阅读次数:
1172
前几天刷leetcode-majorityElement时碰到一泛型问题,用到的代码如下://HashMap hashMap=new HashMap(); 注释为正确写法HashMap hashMap=new HashMap(); if (hashMap.containsKey(n...
分类:
编程语言 时间:
2015-02-19 21:49:47
阅读次数:
187
Map is one of the most important data structures. In this tutorial, I will show you how to use different maps such as HashMap, TreeMap, HashTable and LinkedHashMap.
Map是数据结构中非常重要的一种。在该文章中,我将会告诉你如何去使用不同的map,诸如HashMap,TreeMap,HashTable和LinkedHashMap。...
分类:
其他好文 时间:
2015-02-16 06:48:13
阅读次数:
201