Don't know why my while loop doesn't work (Java) ..? : <p>The purpose of my code is to enter a pin, and it'll check if it's right or not. If it isn't, the question will loop. 
For some reason, my code doesn't loop properly, and a lot of the code is underlined. Specifically the while loop itself and the second JOptionPane</p>

<pre><code>// package loop;

import javax.swing.JOptionPane;


public class loop {


public static void main(String[] args) {
    int correctPin = 3333; 
    int count = 0;
    String maybePin = JOptionPane.showInputDialog("Please enter the PIN"); 
    int sMaybePin = Integer.parseInt(maybePin); 
    while(correctPin != sMaybePin);{ 
       maybePin = JOptionPane.showInputDialog("Please enter the PIN"); 

       count = count-1; 
}
   JOptionPane.showMessageDialog(null, count);
}
} 
</code></pre>
