Answers for "which function is used to return the total number of items in arraylist"

1

how to get the total of arraylist

double sum = 0;
for(int i = 0; i < m.size(); i++)
    sum += m.get(i);
return sum;
Posted by: Guest on February-03-2021

Code answers related to "which function is used to return the total number of items in arraylist"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language