I create a class called MATRIX which has one attribute
int [][] _matrix;
In another class I create an obj of type MATRIX:
Matrix newMatrix=new Matrix();
I want to initialize the obj like in this example:
int [][] a={{1,2,3}, {2,2,4}}
I try to write
newMatrix._matrix={{1,2,3}, {2,2,4}}
and I got a syntax error.
What did I've done wrong?