I have a list of object which contain 10000 records i am trying to split that records in each of 10,
But somehow it is not working.. can someone have a look
We can use PagedListHolder which can change the list in pages and we can than fetch a page by setting it's page size and page.
PagedListHolder page = new PagedListHolder(admin_viewapplicationpage); page.setPageSize(50); // number of items per page page.setPage(0); // set to first page int totalPages = page.getPageCount(); // gives the totalpages according to the main list List admin_viewapplication = page.getPageList(); // a List which represents the current page which is the sublist