Introduction
Here is the source code for Main.java
Source
//package com.java2s;
//License from project: Open Source License
import java.util.List;
public class Main {
public static <T> void exchange(List<T> a, int i, int j) {
T temp = a.get(i);
a.set(i, a.get(j));
a.set(j, temp);
}
}