I'm trying to iterate over string arrays inside a ArrayList. How is this possible?
public ArrayList<String[]> arrayList = new ArrayList<String[]>();
// [ [12, "Something"], [6, "Thing"], [3, "Cookies"] ]
public void getText(final List arrayList) {
for (String[] array : arrayList) {
Log.d("Text", array[1]);
}
}
Error (line 4)
- Required: String[]
- Found: Object