If you\'re defining a variable, it appears to be perfectly valid to declare/define a variable as follows:
double[][] output = {{0,0},{1,0}};
You can use braces notation only at the point of declaration, where compiler can infer the type of array from the declaration type.
To use it anywhere else you need to use Array Creation Expression:
return new double[] {0,1,2};