public static void main(String[] args) {
int a[] = { 3, 7, 80, 56, 97, 34 };
for (int i = 1; i < a.length; i++) {
for (int j = 0; j < a.length-1; j++) {
if (a[j] > a[j+1]) {
a[j] = a[j+1] + a[j];
a[j+1] = a[j] - a[j+1];
a[j] = a[j] - a[j+1];
}
}
System.out.println("a[i]="+a[i]);
}
}