List<Contacts> ppage= new ArrayList<Contacts>();
List<Contacts> list = contactsDao.list();
for (int i = (index-1)*size; i < index*size; i++) {
if(i < list.size()) {
ppage.add(list.get(i));
}
}
List<Contacts> list = contactsDao.list();
for (int i = (index-1)*size; i < index*size; i++) {
if(i < list.size()) {
ppage.add(list.get(i));
}
}