for (String varValue : arrayList1) {
                Map<String, String> mapInstance = new HashMap<>();
                val.put(KEY, VALUE);
                val.put(VAR_KEY, varValue);
                arrayList2.add(mapInstance);
            }
Basically, I want to create a map with two entries and then add each of these maps to a list.
Final list:
{KEY,VALUE}   {VAR_KEY,arrayList1.get(0)}
{KEY,VALUE}   {VAR_KEY,arrayList1.get(1)}
{KEY,VALUE}   {VAR_KEY,arrayList1.get(2)}
...
and so on
 
     
     
    