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

 

jebbert@volusia.k12.fl.us > nov4_2016_APSLHL_exactlyTwoTrue
prev  |  next  |  chance

Write a method that accepts three boolean parameters and returns 'true' if exactly two of them are true. Return 'false' otherwise.


nov4_2016_APSLHL_exactlyTwoTrue(true, true, true) → false
nov4_2016_APSLHL_exactlyTwoTrue(true, false, true) → true
nov4_2016_APSLHL_exactlyTwoTrue(true, false, false) → false

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

public boolean nov4_2016_APSLHL_exactlyTwoTrue(boolean p1, boolean p2, boolean p3) { }

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

Copyright Nick Parlante 2017 - privacy