List<String> aa = ....;
Map<String, Integer> map = new HashMap<String,Integer>();
for (int i=0;i<aa.size();i++) {
String temp = aa .get(i);
if(map.containsKey(temp))
map.put(temp, map.get(temp)+1);
else
map.put(temp, 1);
}
List<Integer> sortList = new ArrayList<Integer>();
//由于存在重复次数相同的元素,所以将mapSort设置为Map<Integer,List<String>>,其中List<String>用来存储次数相同的String
Map