Here you can find the source of divideRoundUp(int first, int second)
public static int divideRoundUp(int first, int second)
//package com.java2s; //License from project: Open Source License public class Main { public static int divideRoundUp(int first, int second) { return (int) Math.ceil((double) first / (double) second); }//from w w w .j a v a 2 s . co m }