What does this syntax on in the Android Java code mean?
<p>Can anybody explain the following codes to me? It is <a href="http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3.7_r1/com/android/server/ConnectivityService.java?av=f" rel="nofollow">from the Android source code</a>.</p>

<p>The first line looks to me is to initialize an integer array, but what about those codes enclosed in braces? I mean are those codes syntax correct since the braces part
seems to be tangling?</p>

<pre><code>    // high priority first
    mPriorityList = new int[mNetworksDefined];
    {
        int insertionPoint = mNetworksDefined-1;
        int currentLowest = 0;
        int nextLowest = 0;
        while (insertionPoint &gt; -1) {
            for (NetworkAttributes na : mNetAttributes) {
                if (na == null) continue;
                if (na.mPriority &lt; currentLowest) continue;
                if (na.mPriority &gt; currentLowest) {
                    if (na.mPriority &lt; nextLowest || nextLowest == 0) {
                        nextLowest = na.mPriority;
                    }
                    continue;
                }
                mPriorityList[insertionPoint--] = na.mType;
            }
            currentLowest = nextLowest;
            nextLowest = 0;
        }
    }
</code></pre>
