Hey basically what I wish to do is take a number of ArrayList<HashMap<String, String>> menuItems and pass it to my onPostExecute method so to do this I intended to create an array of menuItems and pass it through...this is the code I used to do this
ArrayList<HashMap<String, String>>[] arr = new ArrayList<HashMap<String,String>>[6];
arr[0] = menuItems;
arr[1] = menuItems2;
arr[2] = menuItems3;
arr[3] = menuItems4;
arr[4] = menuItems5;
arr[5] = menuItems6;
then I return arr. However I am getting this error
Cannot create a generic array of ArrayList<HashMap<String,String>>
which seems to indicate something about Java implementing its Generics at complier level which is about all I was able to find after researching questions on stack overflow and on the web in general. So my question is simply how would I do this? Either a way to solve my error or a different method of returning the menuItems.
ArrayList<HashMap<String, String>> arr = new ArrayList<HashMap<String,String>>();arr.add(menuItems);arr.add(menuItems2);//...ArrayListofArrayListsinstead of[]ofArrayLists.