class Util {

	public static <T> List<List<T>> split(List<T> lst, int count) {
		List<List<T>> lstRs = new ArrayList<>();
		List<T> countLst = new ArrayList<>(count);
		for (T t : lst) {
			if (countLst.size() == count) {
				lstRs.add(countLst);
				countLst = new ArrayList<>(count);
			}
			countLst.add(t);
		}
		if (countLst.size() > 0) {
			lstRs.add(countLst);
		}
		return lstRs;

	}

}