Java tutorial
import java.util.*; // import whole package including Arrays import java.util.Arrays; // import just Arrays public class Main { public static void main(String[] argv) { String[] strings = { "10", "9", "100" }; Arrays.sort(strings); for (String string : strings) System.out.print(string + " "); } }