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