swap
Swaps values index1 with index2 in place. Throws IndexOutOfBoundsException when one or both indices are not present in the collection
Swaps values index1 with index2 in place. Throws IndexOutOfBoundsException when one or both indices are not present in the collection