Swaps elements at indices i and j in place.
i
j
void swap(int i, int j) { final tmp = this[i]; this[i] = this[j]; this[j] = tmp; }