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

 

Oct4_2017_howMany


Write a method that accepts three Boolean parameters and returns how many of those are true. See test data for examples.


Oct4_2017_howMany(true, false, true) → 2
Oct4_2017_howMany(false, false, false) → 0
Oct4_2017_howMany(true, true, true) → 3

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

public int Oct4_2017_howMany(boolean a, boolean b, boolean c) { }

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

Copyright Nick Parlante 2017 - privacy