1表-顺序存储结构概要
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 过程: 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
您可能关注的文档
最近下载
- 《GB_T 29315-2022中小学、幼儿园安全防范要求》专题研究报告.pptx VIP
- 蒂森电梯MC2电气原理图纸R000059615 有机房电气原理图清晰.pdf
- 《中小学、幼儿园安全防范要求(GB_T 29315—2022)》深度解读课件.pptx VIP
- 2011湖北十堰中考英语试题试卷及答案(word).doc
- 2025国开学习网电大《农村经济管理》形考作业四答案.pdf VIP
- 山东春考模拟试题含答案机械类 .pdf VIP
- 木龙骨吊顶施工技术.pptx
- 第16课《学先锋 做先锋》(第一课时)教案教学设计 2025道德与法治一年级下册.doc VIP
- 跨文化交际实用案例与分析方法.docx VIP
- 《数据智能研究报告(2025年)》.pdf VIP
原创力文档

文档评论(0)