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