package shuzu;
import java.util.Arrays;
public class q7 {
public static void main(String[] args) {
int[] a=new int[]{56,1,458,35,564};
System.out.println(""+Arrays.toString(a));
int i=1;
int m=a.length;
for(i=1;i<m;i++)
{
for(int n=0;n<m-i;n++)
{
if(a[n]>a[n+1])
{
int p;
p=a[n+1];
a[n+1]=a[n];
a[n]=p;
}
}
}
System.out.println(""+Arrays.toString(a));
}
}