I’m converting a Page to a new one by using PageImpl class, but the totalpages attribute has the default value 0. I would like to set totalPages to a specific number. Is it possible to change it? code Answer To get a page as an answer you need to change a line in your code Case 1 To find maximum