Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to find the average in an arraylist

for(int i = 0; i<sum.size(); i++)
    total = total+sum.get(i);
avg = total / sum.size();
System.out.println("The Average IS:" + avg);
 
PREVIOUS NEXT
Tagged: #find #average #arraylist
ADD COMMENT
Topic
Name
9+2 =