Java Type mismatch - cannot convert from int[][] error in constructor
<p>my constructor is</p>

<pre><code>public class Figure{
    int[][] x;
    Color y;
    public Figure(int[][] x , Color y){
        this.x=x;
        this.y=y;
    }
</code></pre>

<p>and i am initializing object in the following way:</p>

<pre><code>Figure s = new Figure({{0,1,1},{1,1,0}},Color.ORANGE);
</code></pre>

<p>getting the following error:</p>

<p>Type mismatch - cannot convert from int[][] to Figure
Syntax error on tokens: misplaced construct
                         Variable declarator expected instead</p>
