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

 

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

Write a method that returns the sum of all the integers in 'nums'.


practice2023_10_20_sum([7, 12, -7, 800, -800, -12]) → 0
practice2023_10_20_sum([5, 2, -7, 24, 43, 856, 24, -239, 3]) → 711
practice2023_10_20_sum([24, 3, 57, 568, 325, 235, 62, 124, 57]) → 1455

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

public int practice2023_10_20_sum(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: 210

Copyright Nick Parlante 2017 - privacy