public class doubleArrays
{
public static void main(String[] args){
int[] a={189,65,57,46,48,64,45,47,100,46,574,48,342,54,67,56};
boolean flag=true;
for(int i=a.length-1;i>1;i--){
for(int j=0;j<=i-1;j++ ){
if(a[j]>a[j+1]){
int z=a[j+1];
a[j+1]=a[j];
a[j]=z;
flag=false;
}
}
if(flag){
break;
}
}
for(int aa:a){
System.out.println(aa);}
}
}