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

 

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

Write a method that finds the sum of the even integers in the input parameter array of integers. Odd integers are not included in the sum. Please look at the test data for examples.


dec18_2017_APSLHL_sumOfEvens([]) → 0
dec18_2017_APSLHL_sumOfEvens([34, 3251, 542, 523, 876, 964, 453, 6, 7, 8923, 2]) → 2424
dec18_2017_APSLHL_sumOfEvens([8, 6, 10, 17, 3, 80]) → 104

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

public int dec18_2017_APSLHL_sumOfEvens(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: 280

Copyright Nick Parlante 2017 - privacy