public static <T,W> List<W> listSecond(List<Pair<T, W>> list) {
        ArrayList<W> ts = new ArrayList<W>();
        for (Pair<T, W> twPair : list) {
            ts.add(twPair.getSecond());
        }
        return ts;
    }
public static < T , W > List < W > listSecond ( List < Pair < T , W > > list ) { ArrayList < W > ts = new ArrayList < W > ( ) ; for ( Pair < T , W > twPair : list ) { ts . add ( twPair . getSecond ( ) ) ; } return ts ; }
Return a List of the second items from a list of pairs
@param list list
@param <T> first type
@param <W> second type
@return list of seconds