Here you can find the source of sortStringArray(String[] source)
Parameter | Description |
---|---|
source | the source array |
public static String[] sortStringArray(String[] source)
//package com.java2s; import java.util.Arrays; public class Main { /**/* ww w . ja v a2 s.c om*/ * String sort method. * @param source the source array * @return the sorted array (never null) */ public static String[] sortStringArray(String[] source) { if (source == null) { return new String[0]; } Arrays.sort(source); return source; } }