public static List reverseList(List l){
  LinkedList lRes=new LinkedList();
  int iListSize=l.size();
  for (int iCnt=0; iCnt < iListSize; iCnt++) {
    lRes.add(l.get(iListSize - iCnt - 1));
  }
  return lRes;
}

public static List reverseList ( List l ) { LinkedList lRes = new LinkedList ( ) ; int iListSize = l . size ( ) ; for ( int iCnt = 0 ; iCnt < iListSize ; iCnt ++ ) { lRes . add ( l . get ( iListSize - iCnt - 1 ) ) ; } return lRes ; }
returns a reversed ( by means of item index ) version of a given list .
