public static void main(String[] args){
int[] arr= {321, 43, 45, 76, 8, 6, 9, 1, 3, 63, 43};
for(int i=0;i<arr.length-1;i++){
for(int j=0;j<arr.length-1-i;j++){
int temp = arr[j];
if(arr[j]>arr[j+1]){
arr[j] = arr[j+1];
temp = arr[j];
arr[j+1] = temp;
}
}
}
for(int i=0;i<arr.length;i++){
System.out.print(arr[i]+" ");
}
}