I always thought when using more than one loop the i had to change in the 2nd loop to another letter such as j or k yet I have been able to use i in two or more loops such as below.
Why is that?
for(int i = 0; i < total.length; i++) {
total[i] = Integer.parseInt(reader.readLine());
}
for(int i = 0; i < total.length; i++) {
}