Here you can find the source of divCeil(int a, int b)
public static int divCeil(int a, int b)
//package com.java2s; //License from project: Open Source License public class Main { public static int divCeil(int a, int b) { return (a + b - 1) / b; }//from w w w .j av a 2 s .c om public static <T extends Number> Long divCeil(T a, T b) { return (a.longValue() + b.longValue() - 1) / b.longValue(); } }