public static void bubbleSort(int[] a){
int len=a.length;
int temp;
for(int i=1;i<=len;i++){
for(int j=0;j<len-i;j++){
if(a[j]>a[j+1]){
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
}
int len=a.length;
int temp;
for(int i=1;i<=len;i++){
for(int j=0;j<len-i;j++){
if(a[j]>a[j+1]){
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
}