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

 

norm.krumpe@muohio.edu > theyMatch
prev  |  next  |  chance

Given a number in String form (such as "345") and an int (such as 345), return true if they represent the same number, and false otherwise.


theyMatch("73", 73) → true
theyMatch("0", 0) → true
theyMatch("25", 52) → false

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

boolean theyMatch(String str, int 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

Difficulty: 125

Copyright Nick Parlante 2017 - privacy