In the current code base that I\'m working on I find myself needing to initialise many empty String[] of different lengths.
As of now, they are always initialised in
Using Arrays.fill:
String[] a = new String[9]; Arrays.fill(a, "");
You can use Arrays.fill method: -
Arrays.fill(a, "");