title: Check if String is only line breaks
body: <p>I am trying to check if a given String contains only line breaks and no characters. I use this method</p>
  
  <pre><code>boolean breaksNoLetters(String msg) {
     if (!msg.matches(".*[a-zA-Z]+.*") &amp;&amp; msg.contains("\n")) {
         return true;
     } else {
         return false;
     }
  }
  </code></pre>
  
  <p>It only does not return false if it contains a line break though.</p>