title: Get capital characters as string using Java Stream API
body: <p>I am trying to get capital letters by:</p>
  
  <pre><code>"My Name Is".chars()
  .filter(c-&gt; c &gt; 64 &amp;&amp; c &lt; 97 )
  .collect(&lt;??&gt;);
  </code></pre>
  
  <p>I am not sure what I should pass to collect() method to get list of characters or a string.</p>
  
  <p>My object is to parse string and get another string which has only capital letters </p>
  
  <p>This works fine :</p>
  
  <pre><code>StringBuilder abbr=new StringBuilder();
  "My Name Is".chars()
              .filter(c -&gt; c &gt; 64 &amp;&amp; c &lt; 97)
              .forEach(c-&gt;abbr.append(Character.toChars(c)));
  </code></pre>
  
  <p>Is is possible to use collect() construct of even a better /shorter way ?</p>