Java examples for java.lang:int
divide integer And Round Up
//package com.java2s; public class Main { public static void main(String[] argv) throws Exception { int a = 2; int b = 2; System.out.println(divAndRoundUp(a, b)); }// ww w . j a va2 s.c o m public static int divAndRoundUp(int a, int b) { return (a - 1) / b + 1; } }