hashmap<int,String[]> 如题.
比如String[] str={"12","123","","akjsdflaj","排序"}
String[] str={"12","123","","akjsdflaj","排序"}
String[] str={"12","124","","akjsdflaj","排序"}
有N 条这样的数据..根据String数据里的第二个下标排序.
求解.. 能给代码是最好...
我还有个需求.. 就是能不能排序前或排序后,能不能随机取得前面的前50条.比如.hashmap有100条数据. 我随机取前40条里的8条数据数据..
如果能帮我解决这个问题. 追加100分.跪等答案..