关于set无顺,处理对list排序
public static void main(String args[]) {//Zykclass对象List pl = new ArrayList();pl.add(new Zykclass("p9", 49));pl.add(new Zykclass("p9", 5));pl.add(new Zykclass("p9", 19));Collection paic = PaiXu(pl);List list_ss=(List) paic;//转换为listfor (Iterator it = paic.iterator(); it.hasNext();) {Zykclassp = (Zykclass) it.next();System.out.println(p.getClasid());}}