我的github

 

public ArrayList(collection<?> extends E> c) {
 elementData = C. toArray();
  size = elementData. length;
  // c.toArray might (incorrectly) not return Object[] (see 6260652)
  if (elementData. getClass() != Object[]. class)
  elementData = Arrays . copyOf(elementData, size, object[].class);
}

 

 

https://www.likecs.com/show-204957615.html
posted on 2022-05-20 18:49  XiaoNiuFeiTian  阅读(1879)  评论(0编辑  收藏  举报