title: Whitespaces in java
body: <p>What are kinds of whitespaces in Java?
  I need to check in my code if the text contains any whitespaces.</p>
  
  <p>My code is:</p>
  
  <pre><code>if (text.contains(" ") || text.contains("\t") || text.contains("\r") 
         || text.contains("\n"))   
  {  
     //code goes here
  }   
  </code></pre>
  
  <p>I already know about <code>\n</code> ,<code>\t</code> ,<code>\r</code> and <code>space</code>.</p>