id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tmhscs@gmail.com streams > list_averageElements
prev  |  next  |  chance

Given a list of doubles, return the average of the list.


list_averageElements([1.0, 2.0, 3.0]) → 2.0
list_averageElements([1.0, 2.0]) → 1.5
list_averageElements([2.0, 5.0]) → 3.5

...Save, Compile, Run (ctrl-enter)

public double list_averageElements(List<Double> nums) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy