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

 

sspiege3@schools.nyc.gov arraymix > numMore4
prev  |  next  |  chance

Write a method to determine how many Strings in an array have length more than 4 chars. You will need to loop through all of the elements of the array.


numMore4(["Java", "is", "awesome"]) → 1
numMore4(["no", "no", "no"]) → 0
numMore4(["fuzzy", "mousey"]) → 2

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

public int numMore4( 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