Java tutorial
//package com.java2s; import java.util.List; import java.util.Vector; public class Main { /** * * @param <T> * @param list * @param fromIndex * @param toIndex * @return */ public static <T> List<T> subListReverse(List<T> list, int fromIndex, int toIndex) { List<T> subList = new Vector<T>(fromIndex - toIndex); for (int i = Math.min(fromIndex, list.size()) - 1; (i >= toIndex) && (i >= 0); i--) { T obj = list.get(i); subList.add(obj); } return subList; } }