In the java inplace heapsort implementation arraySwap(int[], int, int) is not defined.
http://www.cs.mu.oz.au/aia/HeapSort.html