日期:2014-05-20 浏览次数:20731 次
public static void main(String[] args)throws IOException,ClassNotFoundException{
List<Integer> a = new ArrayList<Integer>(3);
a.add(1);
a.add(3);
a.add(2);
List<Integer> b = new ArrayList(Arrays.asList( new Object[a.size()]));
Collections.copy(b, a);
Collections.sort(a);
System.out.println(a);//123
System.out.println(b);//132
}