Here you can find the source of ceilDivide(long a, long b)
public static int ceilDivide(long a, long b)
//package com.java2s; //License from project: Apache License public class Main { public static int ceilDivide(long a, long b) { long c = a % b; return (int) (a / b + (c > 0 ? 1 : 0)); }/*from w w w.j ava2 s. c om*/ }