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