Online Java Compiler By
JavaTpoint.com
public class RoundExample2 { public static void main(String[] args) { double x = -83.76; // find the closest int for the double System.out.println(Math.round(x)); } }
Output