Discard null value in string[] java
<p>I am taking some value by parsing the api and now i want to chek whether if through parsing the value comes null then the value should not be added to the string array and if there is some value then only should be added to the string[]. please help
This is my code:</p>

<pre><code>   String[] title_array=null;
   myparseobj=new XMLParser();
    if(myparseobj.xmlParsing(url,"item","title") != null){
    title_array=myparseobj.xmlParsing(url,"item","title");
}
</code></pre>

<p>But this is not working please help</p>
