Question: Index Values of Arrays

I was just wondering, if I have an array with 1,000 elements, what is the range of index values for that array?

Like the numbers you can use to access it’s contents? 0 to 999. Both inclusive.

int[] arr = new int[1000];
int min = arr[0];
int max = arr[999]; // or better: arr[arr.length - 1];
1 Like