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

 

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

This method returns true if 'testNum' is between 'low' and 'high'. If 'include' is true then it is also OK for testNum to equal low or high; otherwise testNum must be between low and high but cannot be equal to either of them. If testNum is not between low and high as described above, return false. You may assume that low<=high.


runeBetween(52, 15, 60, true) → true
runeBetween(52, 15, 60, false) → true
runeBetween(81, 50, 81, false) → false

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

public boolean runeBetween(int testNum, int low, int high, boolean include) { }

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

Copyright Nick Parlante 2017 - privacy