1. 首页
  2. 课程学习
  3. Java
  4. Array index out of bound exception

Array index out of bound exception

上传者: 2020-05-17 13:25:42上传 RAR文件 423B 热度 26次
Writeaprogramthatfirstcreatesanintegerarraya[50],andseta[i]=i+3,i=0to49.Theprogramnextreadsinanindexkfromtheuser,thencallsamethodreadValue(int[]a,intk)thatwouldreturnthevalueofa[k].Themainprogramdisplaysthevaluea[k].Iftheindexisoutofbounds,
用户评论