错误:
java.lang.IndexOutOfBoundsException: Index: 264, Size: 0
at java.util.ArrayList.rangeCheckForAdd(Unknown Source)
at java.util.ArrayList.add(Unknown Source)
我的代码:
import java.util.ArrayList
...
private static ArrayList<String[]> Arr = new ArrayList<String[]>();
...
Arr.add(264, new String[] {"title","description","icon"});
Arr.add(268, new String[] {"title2","description2","icon2"});
Arr.add(1222, new String[] {"title3","description3","icon3"});
我需要用自己的键添加另一个字符串数组