Can anybody explain this code for me!!!

double result = 0;

float BATT1[5];

float BATTERY[21]; // J from 1 to 20

for(int J=1;J<=20;J++)

{

for(int k=0;k<10;k++)

{

BATT1[k] = getAnalog(J);

result += BATT1[k];

}

result = result / 10;

BATTERY[J] = result;

result = 0;

}