摘要: continue;// 当等于给定下标值时,不进行复制 } else { newIndex += 1; newArray[newIndex] = array[i]; } } } else { throw new ArrayIndexOutOfBoundsException("下标值应该大于等于零且小 阅读全文
posted @ 2016-04-14 20:13 前进着 阅读(191) 评论(0) 推荐(0) 编辑
摘要: /** * 复制除给定下标之外的数组元素 * @param array 一个String数组 * @param index 在长度之内的下标 * @return 一个新数组,若原数组长度不大于1,返回null * @throws ArrayIndexOutOfBoundsException 下标值应 阅读全文
posted @ 2016-04-14 20:10 前进着 阅读(238) 评论(0) 推荐(0) 编辑