For this Question: You are given a 2X2 square matrix. You need to find the determinant of the matrix.The input contains two-line, each line contain two integers separated by spaces.

Each element of the matrix is from 1 to 100.Output a single integer, the determinant of the matrix.Sample Input
4 5
2 3

Sample Output
2

Sample Input
2 10
10 40

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



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

					  Scanner sc=new Scanner(System.in);
					  int[][]arr=new int[2][2];
					  for(int i=0;i<2;i++){
						  for(int j=0;j<2;j++){
							  arr[i][j]=sc.nextInt();
						  }
					  }
					  int determinent=(arr[0][0]*arr[1][1])-(arr[1][0]*arr[0][1]);
					  System.out.print(determinent);
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?