Creating a Java Combination Lock -
Creating a Java Combination Lock -
i'm working on computer science assignment, , can't life of me figure out why isn't working.
we're supposed create combination lock (via constructor) prompts user letters spell out password.
the kicker has allow user create few mistakes @ first. example, if password were
d o g
the user type in
a b c d o g
and unlock combination lock.
the attached code my... 5th effort @ this, , i'm not quite sure why it's not working. ideas?
edit:
code on ideone: http://ideone.com/d3yfyt http://ideone.com/jzmnjj thanks in advance!!
maybe not getting explanation correctly, apologies... why don't merge input , test if input .endswith("dog"). if that's not point can list few more scenarios?
java
Comments
Post a Comment