title: java - check whether a string contains any characters other than spaces
body: <p>I need to check if a string contains any symbols other than a space. I cant check with </p>
  
  <pre><code>      String.length() &gt; 0
  </code></pre>
  
  <p>or</p>
  
  <pre><code>      String.equals("") 
  </code></pre>
  
  <p>since spaces are considered as characters. How can I find out whether a java String contains other characters (letters, symbols, numbers, whatever) ?</p>