Java Does Not Follow Code?
<p>Here is a snippet of the code I think does not follow what code should do:</p>

<pre><code>public void updateTimeElapsed() {
    timeElapsedLabel.setText("Time elapsed: " + ((System.nanoTime() - time) / Math.pow(10, 9)));
}

public void updateTimeElapsedIndefinitely() {
    while (true) {
        //System.out.println("Hi");
        //TODO: Why this no work?
        if (start) { System.out.println("Shoulda'"); updateTimeElapsed(); }
    }
}
</code></pre>

<p>If I comment</p>

<pre><code>System.out.println("Hi")
</code></pre>

<p>The code apparently does not work.
If I uncomment it, then it does!</p>

<p>Note:
start is true as soon as you press 's' to start the game.
However, the method is called in the beginning so "hi" should be displayed many times and indefinitely until I press the 's' key.</p>

<p>A picture says a thousand words, so I'll give you hundreds of pictures (video) to explain what I mean:
<a href="https://dl.dropbox.com/u/2792692/CodeWeird.ogv" rel="nofollow">https://dl.dropbox.com/u/2792692/CodeWeird.ogv</a></p>

<p><a href="https://dl.dropbox.com/u/2792692/CodeWeird.wmv" rel="nofollow">https://dl.dropbox.com/u/2792692/CodeWeird.wmv</a></p>

<p>Can anyone tell me what is going on?</p>
