All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.konohiroaki.deepinitializer.ListUtils Maven / Gradle / Ivy

The newest version!
package io.github.konohiroaki.deepinitializer;

import java.util.ArrayList;
import java.util.List;

class ListUtils {

    static  List reverse(List list) {
        List reversed = new ArrayList<>();
        for (int i = list.size() - 1; i >= 0; i--) {
            reversed.add(list.get(i));
        }
        return reversed;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy