how to validate the null string array (Android Java)
<p>I have a question about how to check either the array string got the null value.
My code is like below but still got the string return even the value is null.</p>

<blockquote>
  <p>for (int i=17;i&lt;29;i++)</p>
  
  <p>{ </p>
  
  <p>if (!label[i].equals(null) || !label[i].equals("") || label[i] != null || label[i] != "")</p>
  
  <p>{</p>

<pre><code>Log.d("Get additional label","Additional label = "+label[i]);
        }
    }
</code></pre>
</blockquote>

<p><strong>Problem Solved</strong></p>

<p>The problem solved when I change from</p>

<blockquote>
  <p>if (!label[i].equals(null) || !label[i].equals("") || label[i] != null || label[i] != "")</p>
</blockquote>

<p>to </p>

<blockquote>
  <p>if (label[i].length() != 0)</p>
</blockquote>

<p>Thanks for those who replied :)</p>
