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

 

fund_validDiceRoll


Given an integer representing the roll of a six-sided dice, return true if the integer is a valid dice roll possibility. A dice should only be able to land on the numbers 1, 2, 3, 4, 5, or 6.


fund_validDiceRoll(0) → false
fund_validDiceRoll(1) → true
fund_validDiceRoll(2) → true

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

public boolean fund_validDiceRoll(int value) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy