Java Array Sort sort(T[] array)

Here you can find the source of sort(T[] array)

Description

sort

License

Apache License

Declaration

public static <T> T[] sort(T[] array) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Arrays;
import java.util.Comparator;

public class Main {
    public static <T> T[] sort(T[] array) {
        Arrays.sort(array);/* w  w  w  .  jav a 2s .  c o m*/
        return array;
    }

    public static <T> T[] sort(T[] array, Comparator<T> comparator) {
        Arrays.sort(array, comparator);
        return array;
    }

    public static double[] sort(double[] array) {
        Arrays.sort(array);
        return array;
    }

    public static int[] sort(int[] array) {
        Arrays.sort(array);
        return array;
    }

    public static long[] sort(long[] array) {
        Arrays.sort(array);
        return array;
    }
}

Related

  1. sort(String[] sArray)
  2. sort(String[] str)
  3. sort(String[] strArray)
  4. sort(String[] strArray)
  5. sort(T[] a, S[] a2)
  6. sort(T[] array)
  7. sort(T[] array)
  8. sort(T[] array, boolean nullsFirst)
  9. sort(T[] src)