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

 

simona1@sfusd.edu > containsAllDigits
prev  |  next  |  chance

Returns true if the parameter num has every digit from 0 through 9 and false otherwise. Note that the parameter num is of type long as an int can't store every possible ten digit number. Precondition: num does not have a leading zero.


containsAllDigits(1111111111) → false
containsAllDigits(1234567890) → true
containsAllDigits(123456789) → false

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

boolean containsAllDigits(long num){ }

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