Array List of Array ( ArrayList<String[]> )
Example:
// Variable can be ArrayList<String[]> as well
List<String[]> AList= new ArrayList<String[]>();
String[] addressesArr = new String[3]; addressesArr[0] = "zero"; addressesArr[1] = "one"; addressesArr[2] = "two";
String[] addressesArr2 = {"hi", "there"};
AList.add(addressesArr);
AList.add(addressesArr2);
No comments:
Post a Comment