Here you can find the source of sort(String[] str)
public static String[] sort(String[] str)
//package com.java2s; //License from project: Open Source License import java.util.HashMap; public class Main { public static String[] sort(String[] str) { HashMap map = new HashMap(); for (int i = 0; i < str.length; i++) { map.put(new Integer(i), str[i]); }// ww w . ja va 2 s. c o m HashMap tmp = new HashMap(); for (int i = 0; i < str.length; i++) { char[] ch = str[i].toCharArray(); StringBuffer sb = new StringBuffer(); for (int j = 0; j < ch.length; j++) { sb.append(ch[j]); } } return null; } }