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