public class MainProgram{
public static void main(String []args){
int []num=new int [9];
num[0]=4;
num[1]=14;
num[2]=43;
num[3]=13;
num[4]=24;
num[5]=26;
num[6]=78;
num[7]=19;
num[8]=12;
System.out.print("Before sort : ");
display(num);
Array.quicksort(num);
System.out.print("After sort : ");
display(num);
System.exit(0);
}
public static void display(int []num){
if(num.length>0){
System.out.print("["+num[0]+"]");
for(int i=1;i<num.length;i++){
System.out.print(",["+num[i]+"]");
}
System.out.println();
}
}
}