Answers for "get average of all the array items android"

0

get average of all the array items android

private double calculateAverage(List <Integer> marks) {
    return marks.stream()
                .mapToDouble(d -> d)
                .average()
                .orElse(0.0)
}
Posted by: Guest on June-10-2021

Code answers related to "get average of all the array items android"

Browse Popular Code Answers by Language