For this Question: Implement the function <code>round</code>, which should take a number which can be a float(decimal)
and return its result as an integer rounded of (Use JS In built functions)Function will take a float as input (can be negative or positive)Function will return a rounded off numberconsole. log(round(1.112)) // prints 1

console. log(round(1.9)) // prints 2

console. log(round(-0.66)) // prints -1, I have written this Solution Code: import java.io.*;
import java.util.*;
import java.math.*;


class Main {
	public static void main (String[] args) {
     Scanner sc=new Scanner(System.in);
	 double n=sc.nextDouble();
	 System.out.println(Math.round(n));
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?