Kotlinlearncs.online LogoJava
Return to List

Solve: Array Sum (One Dimensional)

Created By: Geoffrey Challen
/ Version: 2020.9.0

Declare and implement a function called arraySum that receives a one-dimensional array of Int values (IntArray) as its only parameter and returns the sum of the values in the array as an Int. If the array is null you should return 0. Don't overthink this!

Related Lessons

Stuck? You may find these lessons helpful: