For this Question: Write a program to check whether a number is even or odd using switch case.First Line of the input contains the number n.

<b>Constraints</b>
1 <= n <= 1e9If the number is even print "Even" otherwise "Odd"Sample Input : 
23

Sample Output : 
Odd

Sample Input : 
24

Sample Output :
Even, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args) {

		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			int t= Integer.parseInt(br.readLine());
			if(t%2==0)
				System.out.println("Even");
			else
				System.out.println("Odd");
		}
		catch (Exception e){
			return;
		}
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?