@Test
public void demo6(){
int [] arr = {1,2,3,4,5};
for(int x = 0 ;x<arr.length-1;x++){
for(int y = 1;y<arr.length;y++){
if(arr[x]>arr[y]){
int temp = arr[x];
arr[x] = arr[y];
arr[y] = temp;
}
}
}
}