Here you can find the source of sort(Object[] a)
public static void sort(Object[] a)
//package com.java2s; // in accordance with the terms of the license agreement accompanying it. import java.util.Comparator; import java.util.Arrays; public class Main { public static void sort(Object[] a) { Arrays.sort(a);/*w w w . j av a2 s . c o m*/ } public static void sort(Object[] a, Comparator c) { Arrays.sort(a, c); } }