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

 

amjadm@miamioh.edu assignment3 > areLocked
prev  |  next  |  chance

We say digits in a and b are locked when both numbers have the same number of digits, and each digit is a 6 or a 7, and each time a digit in one number is 6, then the corresponding digit in the other number is 7, or vice versa. Return true if all digits in a and b are locked.


areLocked(7, 6) → true
areLocked(6, 7) → true
areLocked(66, 77) → true

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

public boolean areLocked(int a, int b) { }

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

Copyright Nick Parlante 2017 - privacy