Here you can find the source of sortStrings(String[] strings)
public static void sortStrings(String[] strings)
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { public static void sortStrings(String[] strings) { // Just does a bubblesort. for (int i = 0; i < strings.length - 1; ++i) { for (int j = i + 1; j < strings.length; ++j) { if (strings[i].compareTo(strings[j]) > 0) { String t = strings[i]; strings[i] = strings[j]; strings[j] = t;//from w ww . j av a 2 s . co m } } } } }