I'm still fairly new to Java and was wondering if anyone could tell me why the terminal won't output anything when running the program below -

The program compiles and can be executed with java ArraysTwoD, but it just stalls after that...

---

```
import java.util.*;

public class ArraysTwoD
{
    public static void main(String[] args)
    {
        // declaring variables
        int row = 0;
        int col = 0;
        int result = 0;

        // two dimensional array
        int [][] twoDArray;
        twoDArray = new int[row][col];

        // initialising scanner method
        Scanner sc = new Scanner(System.in);

        // gaining inputs from user
        row = sc.nextInt();
        col = sc.nextInt();

        // calculating the product of each element
        for(int i = 0; i < row; i++)
        {
            for(int j = 0; j < col; j++)
            {
                result = twoDArray[i][j] * twoDArray[i][j];

                twoDArray[i][j] = result;
            }
        }

        //outputting each element to the user in matrix fashion
        for(int i = 0; i < row; i++)
        {
            for(int j = 0; j < col; j++)
            {
                System.out.print(twoDArray[i][j]);
            }
        }

        // closing scanner method
        sc.close();
    }
}

```

---

Thanks!