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

 

avgLen


Determina la lunghezza media delle stringhe di un array. Se l'array รจ vuoto, la funzione restituisce il valore -1.0


avgLen(["A", "AB"]) → 1.5
avgLen(["HOLA", "DIOS", "CIAO"]) → 4.0
avgLen(["", "SERVA"]) → 2.5

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

double avgLen(String[] texts) { }

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

Copyright Nick Parlante 2017 - privacy