java吧 关注:1,235,067贴子:12,704,274
  • 0回复贴,共1

求大佬解答,数组扩容的添加到最后位置怎么不正确?

只看楼主收藏回复

//将元素插入到数组中最后位置
names[names.length-1] = insertName;
age[age.length-1] = insertage;
sex[sex.length-1] = insertsex;
telephone[telephone.length-1] = inserttelephone;
addresses[addresses.length-1] = insertaddresses;


1楼2018-09-22 20:43回复