Scenario: got two lists as following:
List<Object[]> listOne = null;
List<Object[]> listTwo = null;
aMethod (see at the bottom) is invoked on each lists which returns a compatible type list
listOne = aMethod(arg1, arg2, arg3);
listTwo = aMethod(argx, argy, argz);
When i try
listOne.add(listTwo);
I get error about the add function . Recommends to use addAll(), which i cant use for my reasons. So, any one have idea how to add a list of objects [] to another list of objects []? Thanks.
public List<Object[]> aMethod(a1, a2, a3) {
List<Object[]> aList = service.getSomeinfo();
return aList;
}