How i can control whether a char[] is null?
<p>I wrote  this code to control whether a char[] is null or not.</p>

<pre><code>char[] xxx = new char[9]; 

for (int i = 0; i &lt; 9; ++i)
        {
            if (xxx[i]==null)   
            {
                xxx[i]=i; 
            }
 }
</code></pre>
