variable to display the average of all numbers in an array list in java code example
Example: calculate mean from arraylist jaca
for(int i = 0; i<sum.size(); i++)
total = total+sum.get(i);
avg = total / sum.size();
System.out.println("The Average IS:" + avg);