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

 

frew@mclean.com unit3stringdr > averageLength
prev  |  next  |  chance

Returns an average length of its four String parameters


averageLength("a", "b", "c", "d") → 1.0
averageLength("hello", "ae", "ab", "abc") → 3.0
averageLength("good", "morning", "to", "you!") → 4.25

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

public double averageLength(String str1, String str2, String str3, String str4) { }

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

Copyright Nick Parlante 2017 - privacy