public List<UserVo> getMember(int page) { List<UserVo> list = userDao.getMember(); int total = list.size(); int p = (page - 1) * 20; // start int end = p + 20; // end List<UserVo> list1 = new ArrayList<UserVo>(); for (int i = p; i < end; i++) { if (i == total) { break; } else { list1.add(list.get(i)); } } return list1; }
public List<UserVo> getMembers() { List<UserVo> list = userDao.getMember(); return list; }