Student\'s names(String[]) and corresponding marks(int[]) are stored in different arrays.
How may I iterate over both arrays together using for each loop in Java ? <
The other way is to use a verbose for loop statement such as;
int i,j; for(i = 0, j=0; i<= student.length-1 && j <=grades.length-1; i++,j++) { ... }