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}};
It's only acceptable during a declaration. You can, however, use new double[] {0, 1, 2}.
new double[] {0, 1, 2}
JLS §10.6:
An array initializer may be specified in a declaration, or as part of an array creation expression.
An array creation expression is the new double[] { } syntax.
new double[] { }