title: Concatenate the first letters of each word of the string without spaces
body: <p>Given a string, get first letter of every word and return the result as a string without spaces.</p>
  <pre class="lang-java prettyprint-override"><code>public class Solution {
      static String getFirstLetterWord(String text) {
          char[] c = text.toCharArray();
          String output = &quot; &quot;;
          for (int i = 0; i &lt; c.length; i++) {
              if (c[i] != ' ' &amp;&amp; (i == 0 || c[i - 1] != ' ')) {
                  System.out.println(c[i]);
                  output = output + c[i];
              }
          }
          return output;
      }
  }
  </code></pre>