- 1
- 0
- 约8.35千字
- 约 58页
- 2017-05-30 发布于浙江
- 举报
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 过程: 1、判断idx的合法性 2、返回原来的theItems [idx] 原型: public AnyType set( int idx, AnyType newVal ) 作用:将theItems[idx]赋值为newVal set theItems A 10 theItems[0] theItems[9] set(5,newVal) newVal set old=theItems[5] set public AnyType set( int idx, AnyType newVal ) { if( idx 0 || idx size( ) ) throw new ArrayIndexOutOfBoundsException( “Index + idx + ; size + size( ) ); AnyType old = theItems[ idx ]; theItems[ idx ] = newV
您可能关注的文档
最近下载
- 康明斯PT泵燃油系统.ppt VIP
- 默纳克荣耀柜大功率别墅梯配一体化轿顶检修盒(MCTC-CTW-B3&A9适用)电气原理图(含手拉门)_中文版.pdf VIP
- 2026【期中】家长会:致敬每位不容易的家长 课件(共37张PPT).pptx VIP
- 基于stm32肺活量测量装置设计.docx
- 2026年职业技能中医康复理疗师-理论知识参考题库含答案解析(5卷题有答案).docx VIP
- 要想知道自己姓氏来源去看:四川渠县百家姓姓氏探源.pdf VIP
- 小儿肾积水诊疗指南(2025年版).docx VIP
- 基于低碳理念的城市滨水公园景观设计——以宁德时代工业文化园设计为例.pdf
- 产品供货紧急情况应对预案.docx VIP
- (2025春新版本)人教版七年级生物下册全册教案.docx
原创力文档

文档评论(0)