java ceil function code example Example 1: java math.ceil Math.ceil(value); Example 2: ceil function in java import java.lang.Math; Math.ceil(a);