Calculate Sum and Average of Values in an Array (Java)

preview_player
Показать описание
A simple way to calculate the sum and average of values in an array.
Рекомендации по теме
Комментарии
Автор

what if the list of numbers intered by the use in inpudilaog

Rere
Автор

How to sum of arrays of floating point numbers.. that the array float come from results LatLng distance, , or any random float numbers..please make tutorial.

masbro
Автор

what if the values are too long to write? like for example: 2, 5, 8, 11, 14, 17, it's alot of work to write all to those numbers in the array. i think they can be added with a for-loop but i dont have an idea how to do

kjn