total =16
page_size = 4
=> totalPage = 4
total =16
page_size = 5
=> totalPage = 4
totalPage = (total % page_size == 0) ? total/page_size : (total/page_size+1);
// Math.ceil does not return as I expected! (Java is not PHP)
Title:
Java - Calculate total page
Description:
total =16 page_size = 4 => totalPage = 4 total =16 page_size = 5 => totalPage = 4 totalPage = (total % page_size == 0) ? tota...
...
Rating:
4