Bubble sort

<source lang="java"> public void buble(int[] a, int size) {

  int i, j, aux;
  for (i = 0; i < size; i++) {
     for (j = size - 1; j > i; j--) {
        if (a[j - 1] > a[j]) {
           aux = a[j - 1];
           a[j - 1] = a[j];
           a[j] = aux;
        }
     }
  }

} </source>