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

 

srp4379@lausd.net > inBothRangesAB
prev  |  next  |  chance

public boolean inBothRangesAB(int number)

Given a number, return true if it is in both of 2 overlapping ranges.
Range1: 100-300 AND Range2: 200-500.
Return false if it isn't.


inBothRangesAB(200) → true
inBothRangesAB(300) → true
inBothRangesAB(100) → false

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

public boolean inBothRangesAB(int number) { }

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

Copyright Nick Parlante 2017 - privacy