Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.List; public class Main { public static List<Integer> sort(List<Integer> srcList) { Object[] ary = srcList.toArray(); java.util.Arrays.sort(ary); List<Integer> resultList = new ArrayList<Integer>(); for (Object val : ary) { resultList.add(Integer.parseInt(val.toString())); } return resultList; } }