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

 

dario.sonego@gmail.com esercicci_array > countComments
prev  |  next  |  chance

Determinare il numero di commenti in un array di stringhe, considerando come commento le stringhe il cui primo carattere รจ un cancelletto '#'


countComments(["qui", "non ci sono", "commenti"]) → 0
countComments(["", "qui", "quo"]) → 0
countComments(["# autore: darios", "# anno:2021", "a=10;", "print a;"]) → 2

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

int countComments(String[] commands) { }

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

Copyright Nick Parlante 2017 - privacy