Util.java Source code

Java tutorial

Introduction

Here is the source code for Util.java

Source

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;
    }
}