Java Array Sort sort(Object[] a)

Here you can find the source of sort(Object[] a)

Description

sort

License

Open Source License

Declaration

public static void sort(Object[] a) 

Method Source Code


//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);
    }
}

Related

  1. sort(int[] intValues)
  2. sort(int[] keys, int[] values)
  3. sort(int[] values)
  4. sort(Number[] array)
  5. sort(O[] array)
  6. sort(Object[] arr, int start, int end)
  7. sort(Object[] array)
  8. sort(Object[] array, Comparator comparator)
  9. sort(Object[] array, int start, int end)