Android - for loop: for (boolean bool = true; ; bool = false)
<p>The following snippet is part of a Human Step Detection Android App
downloaded from the Play Store. Since it works fine, so I assume the
codes all make sense.</p>

<pre><code>private boolean isMotion(float[] paramArrayOfFloat)
{
    if ((Math.abs(this.mOldAcc[0] - paramArrayOfFloat[0]) &gt; 1.0F) || (Math.abs(this.mOldAcc[1] - paramArrayOfFloat[1]) &gt; 1.0F) ||
        (Math.abs(this.mOldAcc[2] - paramArrayOfFloat[2]) &gt; 1.0F));
        for (boolean bool = true; ; bool = false)
        {
            this.mOldAcc[0] = paramArrayOfFloat[0];
            this.mOldAcc[1] = paramArrayOfFloat[1];
            this.mOldAcc[2] = paramArrayOfFloat[2];
            return bool;
        }
}
</code></pre>

<p>Regarding the following codes, I have two questions:</p>

<p>1) The looping condition:</p>

<p><code>for (boolean bool = true; ; bool = false){}</code></p>

<p>This condition means that every time my loop starts, bool is set to
 true. Then when the loop is finished, bool is set to false. What is
 the purpose of doing so? In addition, what is the point of doing so
 here?</p>

<p>2) the if condition:</p>

<p><code>if ((Math.abs(this.mOldAcc[0] - paramArrayOfFloat[0]) &gt; 1.0F) || 
     (Math.abs(this.mOldAcc[1] - paramArrayOfFloat[1]) &gt; 1.0F) || (Math.abs(this.mOldAcc[2] 
     -paramArrayOfFloat[2]) &gt; 1.0F));</code></p>

<p>The if condition is directly finished by adding a ; right after the
 condition. Really have no idea why this has been done.</p>

<p>Someone please help me. Thanks very much!!!</p>
