I couldn't get exactly what you wanted, but I have something like this, hope this helps.
int firstarray[][] = { { 1, 2, 3, 4 }, { 5, 6, 7, 8 }, { 9, 10, 11, 12 } };
First go to window → settings, and under java → formatter you can edit the active profile.
Under the parentheses tab for the array initializer, set it to the "next line"
In the new lines tab for array initializers, check both "insert a new line after opening the array initializer bracket" and "insert a new line before closing the array initializer bracket"
Finally, on the line wrapper tab in expressions, click on the array initializers and set it to "wrap all elements, each element in a new line" and the indentation policy set to "indent by one"
Now just source → format to get the result, and you're done.
source share