code: public <T> List<T> subList(List<T> list, int fromIndex, int toIndex) {
          return list.subList(fromIndex, toIndex);
      }
docs: Get a portion of the given list as a new list.
  
  @param list The list to retrieve a portion of
  @param fromIndex The first index, inclusive, to start from
  @param toIndex The last index, inclusive, to end at
  
  @return A new list containing the given portion of the list
  
  @see List#subList(int, int)