java代码:
public static void main(String[] args){int[] i = { 56, 35, 45, 86, 95, 32, 59, 62, 15, 76 };Arrays.sort(i);for (int x = 0, len = i.length; x < len; x++){System.out.println(i[x]);}}
控制台输出:
15323545565962768695