static TreeMap mapStu=new TreeMap();
mapStu.put(1, 45);
mapStu.put(2, 324);
mapStu.put(3, 56);
mapStu.put(4, 67);
mapStu.put(5, 324);我想把value按升序排列,要怎么做?(key是id,不能把value的值当key)
mapStu.put(1, 45);
mapStu.put(2, 324);
mapStu.put(3, 56);
mapStu.put(4, 67);
mapStu.put(5, 324);我想把value按升序排列,要怎么做?(key是id,不能把value的值当key)
===============
问题是List不能存string类型的变量啊
不知道对不对!