添加一个元素后,ArrayList elementData包含null

时间:2017-03-10 12:07:58

标签: java arraylist

宣布

List list= new ArrayList<MyObject>();
MyObject mo = new MyObject();
mo.setFieldOne("A");

list.add(mo);

为什么结果包含null elementData?

results contains null elements, though arraylist.size(0) is only 1

0 个答案:

没有答案