Creating a Java Combination Lock
<p>I'm working on a computer science assignment, and I can't for the life of me figure out why this isn't working. </p>

<p>We're supposed to create a combination lock (via a constructor) that prompts the user for letters that spell out the password.</p>

<p>The kicker is that it has to allow the user to make a few mistakes at first. For example, if the password were</p>

<p>D
O
G</p>

<p>the user could type in </p>

<p>A
B
C
D
O
G</p>

<p>And it would unlock the combination lock.</p>

<p>The attached code is probably my... Fifth attempt at this, and i'm not quite sure why it's not working. Any ideas?</p>

<p>EDIT:</p>

<pre><code>Code on ideone:

http://ideone.com/D3yFYt

http://ideone.com/jzMNjJ
</code></pre>

<p>Thanks in advance!!</p>
