For this Question: Given a matrix of N*N dimensions. Take the input and display the matrix as an output.First line contains N. 
N lines follow each containing N space seperated integers.

Constraints:-
2 <= N <= 500
1 <= Mat[i][j] <= 1000Print the given matrix.Input:
2
3 4 
7 6

Output:
3 4 
7 6

Input:
3
1 2 3
4 5 6
7 8 9

Output:
1 2 3
4 5 6
7 8 9, I have written this Solution Code: import java.util.*;
import java.io.*;
import java.lang.*;

class Main
{
    public static void main (String[] args)throws IOException {
Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        
        int mat[][] = new int[N][N];
        
        for(int i = 0; i < N; i++)
        {
            for(int j = 0; j < N; j++){
                mat[i][j] = sc.nextInt();
       }
}
  for(int i = 0; i < N; i++)
        {
            for(int j = 0; j < N; j++){
            System.out.print(mat[i][j]+" ");
             }
        System.out.println();
        }
        
         }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?