NormR1
Posting Sage
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16
can you explain what you did to make it work?
Please read NormR1 link. The index range of an array can be from 0 up to n-1 where n is the size of the array. For example, array size 5 is declared as int[] arr = new int[5]; will have valid indices of 0 up to 4. The range is supposed to check for the incoming index value. The index will be out or range if the value is less than 0 or equal to or greater than the size of the index.
Taywin
Posting Maven
2,633 posts since Apr 2010
Reputation Points: 275
Solved Threads: 375
Skill Endorsements: 17