Answers for "arraylist get average"

1

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);
Posted by: Guest on October-17-2020
0

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);
Posted by: Guest on September-01-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language