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

 

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

Write a method that returns the "running total" of the EVEN numbers in the array 'toAdd'. Only EVEN numbers count towards the total. Look at the test data for examples.


test2021_11_18_APSLHL_addArray([]) → []
test2021_11_18_APSLHL_addArray([6]) → [6]
test2021_11_18_APSLHL_addArray([7]) → [0]

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

public int[] test2021_11_18_APSLHL_addArray(int[] toAdd) { }

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