title: check whether a string contains white spaces and more than one @ signs
body: <p>I need to check whether a string contains white spaces commas and more than one @ signs.  I used the following method to do so, but it didn't work properly for me.  </p>
  
  <pre><code>boolean flag = string.matches("\\s,@");
  </code></pre>
  
  <p>Can anyone of you tell me what has gone wrong in it? </p>