package me.wayne.sort;

import java.util.List;

public class SortUtils {

    public static void swap(List<Integer> data, int i, int j) {
        int temp = data.get(i);
        data.set(i, data.get(j));
        data.set(j, temp);
    }
}

@@ -229,11 +229,152 @@
 );%0A    %7D
+%0A%0A    public static void swap(Integer%5B%5D arr, int i, int j) %7B%0A        int temp = arr%5Bj%5D;%0A        arr%5Bj%5D = arr%5Bi%5D;%0A        arr%5Bi%5D = temp;%0A    %7D
 %0A%7D%0A

add SortUtils#swap.