elements of arraylist duplicated
问题 i have created an arraylist and added elements (string array) to it in a DO While loop. i use the following to add the elements: tempList.add(recordArray); //- recordArray is a String[] //ArrayList<String[]> tempList = new ArrayList<String[]>();// is declared in the activity before onCreate method if i check the array within the DO WHILE loop using following code: aStringArray = tempList.get(index); Log.i(TAG,"aStringArray[0] = " + aStringArray[3]); index++; i get the correct string for each