Java Array Sort sortStringArray(String[] array)

Here you can find the source of sortStringArray(String[] array)

Description

sort String Array

License

Apache License

Declaration

public static String[] sortStringArray(String[] array) 

Method Source Code

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

import java.util.Arrays;

public class Main {
    public static String[] sortStringArray(String[] array) {
        if ((array == null) || (array.length < 0))
            return new String[0];
        Arrays.sort(array);/*from   w  w  w . ja  v a 2 s. com*/
        return array;
    }
}

Related

  1. sortPopup(Integer[] integers)
  2. sortRetain(long[] a)
  3. sortReverseOrder(String[] strings)
  4. sortStringArray(String array[], boolean inplace)
  5. sortStringArray(String[] array)
  6. sortStringArray(String[] source)
  7. sortStringArrayAlphabetically(String[] strings)
  8. sortStrings(final String[] strings)
  9. sortStrings(String[] strings)