public class bubules {
public static void main(String[]args)
{
int []a={25,24,12,76,101,96,28};
for (int i=1;i<a.length;i++)
{
for (int j=0;j<a.length-1;j++)
{
int temp;
if(a[j]>a[j+1])
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
for (int k=1;k<a.length;k++)
{
System.out.print(" "+a[k]);
}
}
}