Found an elegant solution:
int pageCount = (records + recordsPerPage - 1) / recordsPerPage;
More Related Contents:
- What is a shell script, makefile and ant file [closed]
- Can I see another sample of this program? I'm having difficulty in understanding it [closed]
- Simple Client Manager Soft – C# with Visual Studio or Java with Eclipse? [closed]
- Division In C++ and java?
- String Matching in Java or C#
- Calling java code from c#
- How to create a Java ArrayList in C
- Division of integers in Java [duplicate]
- How to convert number to words in java
- Permutation of array
- java.lang.ClassNotFoundException: Didn’t find class on path: dexpathlist
- Fastest way to determine if an integer’s square root is an integer
- recyclerview horizontal scrolling to left
- Can’t find a way to color the Mandelbrot-set the way i’m aiming for
- Best way to represent a fraction in Java?
- How to obtain JNI interface pointer (JNIEnv *) for asynchronous calls
- OpenCV Template Matching example in Android
- Better way to create AES keys than seeding SecureRandom
- Selenium: download file in Internet Explorer to specified folder without direct link, without Windows Forms, without AutoIt or Robot
- Nice Label Algorithm for Charts with minimum ticks
- Class method and variable with same name, compile error in C++ not in Java?
- Is there an efficient algorithm for integer partitioning with restricted number of parts?
- what is the size of empty class in C++,java?
- How do I get the intersection between two arrays as a new array?
- Is there an effective tool to convert C# code to Java code? [duplicate]
- Virtual table/dispatch table
- How to round up integer division and have int result in Java? [duplicate]
- Persisting sha256 hash objects?
- How JVM stack, heap and threads are mapped to physical memory or operation system
- Basic render 3D perspective projection onto 2D screen with camera (without opengl)