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

 

sspiege3@schools.nyc.gov arrays2 > arrayEvensElements
prev  |  next  |  chance

Given an array of integers named nums, write the method arrayEvenElements such that it returns a String with all of the EVEN elements concatenated.


arrayEvensElements([12, 34, 56, 78, 90]) → "1234567890"
arrayEvensElements([123, 345, 567, 789]) → ""
arrayEvensElements([1111112, 2]) → "11111122"

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

public String arrayEvensElements(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: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy