Here you can find the source of sort(String[] strArray)
public static String sort(String[] strArray)
//package com.java2s; import java.util.Arrays; public class Main { public static String sort(String[] strArray) { Arrays.sort(strArray);/*from w ww .java 2 s. c o m*/ StringBuilder sb = new StringBuilder(); for (String str : strArray) { sb.append(str); } return sb.toString(); } }