Here you used arrays instead of a list of arrays.
Read This Before Fixing Your Question
The main difference between Array and ArrayList in Java is that the Array is a structure fixed data length, and ArrayList collection class is of variable length.
You cannot change the length of the array after creation in Java, but the ArrayList re-parses itself when populated depending on capacity and load factor.
Because Array List is internally maintained by Array in Java, any resizing operation in ArrayList will slow performance, as it involves creating a new array and copying the contents from the old array to the new array .
But here you need to use an ArrayList. Since you need to add data at a later stage.
List<String> whatever = new ArratList(Arrays.asList("Blah1", "Blah2")); whatever.add(0, "BlahAll");
source share