import java.util.*;
public class SortArray {
public static void main(String args[]) {
int[] myarray1 = { 1234, 1243, 1112, 4356, 3421, 123, 7654, 34, 987 };
String[] myarray2 = { "Java", "Python", "Php", "c", "c++" };
System.out.println("Original numeric array : " + Arrays.toString(myarray1));
Arrays.sort(myarray1);
System.out.println("Sorted numeric array : " + Arrays.toString(myarray1));
System.out.println("Original string array : " + Arrays.toString(myarray2));
Arrays.sort(myarray2);
System.out.println("Sorted string array : " + Arrays.toString(myarray2));
}
}