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

 

jebbert@volusia.k12.fl.us > preEaglesArraySum
prev  |  next  |  chance

Write a method that returns the sum of all the integers in an array. That is it! Piece of cake!


preEaglesArraySum([5, 5, 10, 10]) → 30
preEaglesArraySum([-9, 9, -2, 2, -1, 1]) → 0
preEaglesArraySum([-5, -2, -1]) → -8

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

public int preEaglesArraySum(int[] 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

Difficulty: 250

Copyright Nick Parlante 2017 - privacy