PPT Slide
- declare iGradeArray of 10 ints
- initialize all 10 values to 0
int[ ] iGradeArray = new int[10];
int i; // when declaring and manipulating arrays, you may
// use the single-letter IDers i, j, k for indices
// due to convention (everybody knows what it is)
for (i=0; i < iGradeArray.length; i++)
Great idea! if you change the array size, you need only change the