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

 

andersoniii.edwin@cusd80.com > makeArray3
prev  |  next  |  chance

makeArray3 - Given an array of integers. Write the method to sum all of the entries of the array and pass back that sum. if the array is empty, pass back zero. {2,3,4,5,6},20


makeArray3([2, 3, 4, 5, 6]) → 20
makeArray3([4, 5, 6, 7, 8]) → 30
makeArray3([]) → 0

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

public int makeArray3(int[] a){ }

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

Difficulty: 102

Copyright Nick Parlante 2017 - privacy