Java tutorial
import java.util.Arrays; import java.util.Collections; import java.util.List; public class Util { public static <T> List<T> reverse(T[] array) { List<T> list = Arrays.asList(array); Collections.reverse(list); return list; } }