title: Checking the string for null or empty space
body: <p>I am reading a text file abc .txt  which is tab delimited as shown below</p>
  
  <pre><code>gfh  hgh  thf
  ---  ---  ---
  fgh  sji  irj   
  rhf  dhh  fhf
  kji  idj  ddt
  </code></pre>
  
  <p>and I am able to read it successfully (for all the columns in the table I have developed a separate pojo along with getters and setters), the advantage is that I can get the value of complete row through its getters.</p>
  
  <p>Now I have to make sure that no column in the table should be null and if any column value is null, then I should throw a new exception, for example ..</p>
  
  <pre><code>gfh  hgh  thf
  ---  ---  ---
  fgh  sji  irj   //row 1
  rhf  dhh  fhf
  kji  idj  ddt
  fgq       fio   //As seen in this row that second column value is null 
  </code></pre>
  
  <p>Now the approach that I am following is that getting the value row wise in a string as shown below</p>
  
  <pre><code>String n = f.getgfh()+f.gethgh()+f.getthf();  //it will contain the contents of the row 1
  </code></pre>
  
  <p>make a separate method and will pass this string </p>
  
  <pre><code>private boolean validaterow(String f)
  {
  }
  </code></pre>
  
  <p>in this method here I am taking the complete row in a string and inside this method I want to break this string in tokens and then further evaluate those tokens for empty or null  , if there are then I will return false</p>