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

Java > Array-1 > no23
prev  |  next  |  chance

Given an int array length 2, return true if it does not contain a 2 or 3.

no23({4, 5}) → true
no23({4, 2}) → false
no23({3, 5}) → false

...Save, Compile, Run

See also Java Example Code. Java help docs: If Boolean Logic | Strings | While and For Loops | Arrays and Loops


prev  |  next  |  chance   |  CodingBat  >  Array-1

Forget It! -- delete my code for this problem 139.0

Copyright Nick Parlante 2006-10 - privacy