Here you can find the source of sortStringArray(String[] array)
public static String[] sortStringArray(String[] array)
//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; } }