Sort an array using bubble sort

17/10/2013 17:44
public class bubblesort
{
public static void main(String args[])
{
int[]a={25,12,32,90,1};
int b=a.length;
int t;
for(int i=0;i<=b-1;i++)
{
for(int j=0;j<b-1;j++)
{
if(a[j]>a[j+1])
{
t=a[j];
a[j]=a[j+1];
a[j+1]=t;
}
}
}
for(int k=0;k<=b-1;k++)
{
System.out.println(a[k]+" ");
}
}
}

Absolutely correct without a single error