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

 

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

Write a method that returns 'true' if ANY of the Boolean values in the options array are 'true', otherwise return 'false'. You MUST use good programming methodology as explained in class. This includes proper use of a for-loop if you choose to use that type of loop. Don't forget about while-loops! Note: The options array will contain at least one entry.


dec15_2016_APSLHL_anyTrue([true]) → true
dec15_2016_APSLHL_anyTrue([false]) → false
dec15_2016_APSLHL_anyTrue([false, false, true, false, false]) → true

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

public boolean dec15_2016_APSLHL_anyTrue(boolean[] options) { }

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