How to round up in Java?April 22, 2021+To round up in Java, call the Math.ceil method.double aNumber = 4.3; Math.ceil(aNumber); // 5.0