Array index out of bound exception

上传:hh70325 浏览: 23 推荐: 0 文件:RAR 大小:423B 上传时间:2020-05-17 13:25:42 版权申诉
Writeaprogramthatfirstcreatesanintegerarraya[50],andseta[i]=i+3,i=0to49.Theprogramnextreadsinanindexkfromtheuser,thencallsamethodreadValue(int[]a,intk)thatwouldreturnthevalueofa[k].Themainprogramdisplaysthevaluea[k].Iftheindexisoutofbounds,
上传资源
用户评论