code: public static <T> List<T> subList(List<T> list, int pageSize, int pageNo) {
          pageSize = (pageSize <= 0 ? 10 : pageSize);
          pageNo = (pageNo <= 0 ? 1 : pageNo);
          int begin = (pageSize * (pageNo - 1) > list.size() ? list.size() : pageSize * (pageNo - 1));
          int end = (pageSize * pageNo > list.size() ? list.size() : pageSize * pageNo);
          return new ArrayList<T>(list.subList(begin, end));
      }
docs: 取得List的第N页的subList
  
  @param list
  要分页的list
  @param pageSize
  @param pageNo
  @return List