Swaps two indices in the given array @param array the array to perform the sawp in @param a the first index @param b the second index
(int[] array, int a, int b)
| 48 | * @param b the second index |
| 49 | */ |
| 50 | static public void swap(int[] array, int a, int b) |
| 51 | { |
| 52 | int tmp = array[a]; |
| 53 | array[a] = array[b]; |
| 54 | array[b] = tmp; |
| 55 | } |
| 56 | } |