For this Question: Take an integer as input and print it.The first line contains integer as input.

<b>Constraints</b>
1 <= N <= 10Print the input integer in a single lineSample Input:-
2

Sample Output:-
2

Sample Input:-
4

Sample Output:-
4, I have written this Solution Code: /* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
    public static void printVariable(int variable){
        System.out.println(variable);
    }
    
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        printVariable(num);   
	}
}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?