int[] arry={7,1,6,5,3,4,9,8,2};
for(int a=0;a<arry.length;a++)
{
for(int b=a+1;b<arry.length;b++)
{
if(arry[a]>arry[b])
{
int zhong=arry[a];
arry[a]=arry[b];
arry[b]=zhong;
}
}
System.out.print(arry[a]);
}