publicclassPartitionApp {/**
* @param args
*/publicstaticvoidmain(String[] args) {
// TODO Auto-generated method stubint maxSize=16;
ArrayPar arr;
arr = new ArrayPar(maxSize);
for(int j=0;j<maxSize;j++){
long n=(int)(Math.random()*199);
arr.insert(n);
}
arr.display();
long pivot=99;
System.out.print("Pivot is "+pivot);
int size =arr.size();
int partDex=arr.partitionIt(0, size-1, pivot);
System.out.println(",Partition is at index "+partDex);
arr.display();
}
}