Java Code:
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Sort {
  public static void main(String args[]) {
    String[] strArray = new String[] { "Java", "Forums", "And", "and",
        "Tips", "Java-Forums" };

    List l = Arrays.asList(strArray);
    Collections.sort(l);
    System.out.println(l);
  }
}