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

 

tmhscs@gmail.com strings > string_onlyDigits
prev  |  next  |  chance

string_onlyDigits--Given a String return true if the string only contains digits (0-9) as characters. Return false if the String is empty because it doesn't contain any digits.


string_onlyDigits("1813158131132") → true
string_onlyDigits("51f5sd1fs3d51fs") → false
string_onlyDigits("") → false

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

public boolean string_onlyDigits(String str){ }

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