Array index out of bound exception
Writeaprogramthatfirstcreatesanintegerarraya[50],andseta[i]=i+3,i=0to49.Theprogramnextreadsinanindexkfromtheuser,thencallsamethodreadValue(int[]a,intk)thatwouldreturnthevalueofa[k].Themainprogramdisplaysthevaluea[k].Iftheindexisoutofbounds,
下载地址
用户评论