Java List Reverse reverse(List source)

Here you can find the source of reverse(List source)

Description

reverse

License

Apache License

Declaration

private static <F> List<F> reverse(List<F> source) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.ArrayList;
import java.util.Collections;

import java.util.List;

public class Main {
    private static <F> List<F> reverse(List<F> source) {
        ArrayList<F> backwardsSource = new ArrayList<F>(source);
        Collections.reverse(backwardsSource);
        return backwardsSource;
    }//w  w w  .  ja va2s  . com
}

Related

  1. reverse(List aList)
  2. reverse(List list)
  3. reverse(List list)
  4. reverse(List as)
  5. reverse(List list)
  6. reverse(List list)
  7. reverse(List list)
  8. reverse(List a)
  9. reverse(List l)

  10. HOME | Copyright © www.java2s.com 2016