Here you can find the source of divCeil(int a, int b)
static public int divCeil(int a, int b)
//package com.java2s; //License from project: Open Source License public class Main { static public int divCeil(int a, int b) { return a / b + ((a % b == 0) ? 0 : 1); }//w ww . ja va 2 s . c o m }