Here you can find the source of div(int val, int coe)
public static int div(int val, int coe)
//package com.java2s; //License from project: Open Source License public class Main { public static int div(int val, int coe) { return val / coe + (val % coe > 0 ? 1 : 0); }/*www . j a v a2 s . c o m*/ }