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

 

sspiege3@schools.nyc.gov arrayssumcount > sumEvenStrings
prev  |  next  |  chance

Write a method to total the amount of characters in all of the Strings of even length You will need to loop through all of the elements of the array.


sumEvenStrings(["no", "no", "no"]) → 6
sumEvenStrings(["Java", "is", "awesome"]) → 6
sumEvenStrings(["fuzzy", "mouse"]) → 0

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

public int sumEvenStrings( String [] words) }

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: 201 Post-solution available

Copyright Nick Parlante 2017 - privacy