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

 

orion.a.smith@gmail.com apcsa-lists > apcsaListEvenStrings
prev  |  next  |  chance

Given an ArrayList of String values, return an ArrayList of Integers, whose values are the lengths of the input Strings that are divisible by 2.


apcsaListEvenStrings(["body", "hey", "via", "evilly"]) → [4, 6]
apcsaListEvenStrings(["1", "12", "123", "1234", "12345", "123456"]) → [2, 4, 6]
apcsaListEvenStrings(["1", "123", "12345"]) → []

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

public List<Integer> apcsaListEvenStrings(ArrayList<String> lst) { }

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: 220

Copyright Nick Parlante 2017 - privacy