round no in java

Java
import java.lang.Math; 
double num1 = 74.65;
System.out.println(Math.round(num1));
Source

Also in Java: