For this Question: Write a program that creates an N*N matrix. Fill each cell with the sum of row number and column number (based on 0 indexes, ie indices begin from base 0), take its transpose and print it. 
Where the transpose of a matrix is a new matrix whose rows and the columns are interchanged to that of  original matrix.Input contains a single integer N.

Constraints:-
1<=N<=500Print the NxN matrix.Sample input
2

Sample output
0 1
1 2

Explanation:-
0+0    0+1
1+0    1+1

Sample Input:-
3

Sample Output:-
0 1 2 
1 2 3 
2 3 4

, 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 n=sc.nextInt();
    int[][] a=new int[n][n];
    for(int i=0;i<n;i++)
    {
        for(int j=0;j<n;j++)
        {

            System.out.print(i+j + " ");
        }

        System.out.println();
    }


	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?