I have this map:
static Map<String, String> myMap = new HashMap<>();
static {
    myMap.put("param1","param11");
    myMap.put("param2","param22");
}
and I have this 2d array:
Object[][] objArr1 = new Object[][]{
             {"1", 1},
             {"2", 2}
    };
I want to "merge" the above into another 2d array:
Object[][] objArr3 = new Object[][];
So the resulting content of objArr3 is (in no particular order):
 {"1", 1, "param1","param11"},
 {"1", 1, "param2","param22"},
 {"2", 2,"param1","param11"},
 {"2", 2,"param2","param22"
I understand that I probably need
new Object[objArr1 * myMap.size()][4];
but can't create a proper nested for loop to do this. I've tried to combine solutions from here and here but to no avail. Any help greatly appreciated.
 
    