title: Checking for a string/string[] to be null or "" in java
body: <p>I need to check if a input <code>String</code> or a <code>String[]</code> is <code>null</code> or <code>""</code> for computing within a method in java. </p>
  
  <p>This method takes argument as <code>String</code>...</p>
  
  <p>I am using the below condition; can somebody check and let me know what I am wrong here,</p>
  
  <pre><code>if(tokens==null){
      return;
  } else if(tokens[0] != null &amp;&amp; tokens[0]!=""){
      return;
  } 
  </code></pre>