public void sort(int[] array) { #header
  if (array == null) #ifNull
    return; #returnNull
  int i, j;  #variables
  i = array.length - 1; #initializeI
  while (i >= 0) { #outerLoop
    for (j = 1; j <= i - 1; j++) { #innerLoop
      if (array[j - 1] > array[j]) {  #if
        swap(array, j - 1, j); #swap
      } #endif
    } #endInnerLoop
    i = i - 1; #decrementI
  } #endOuterLoop
} #end