title: How to count the number of names in a queue that begin with the same first letter?
body: <p>I'm interested in how to count the number of names in a queue that begin with the same first character.</p>
  
  <p>My program will be asking the user to input several names, and the names will be stored in a queue. However, I am required to count the number of names in the queue that begins with the same first character. How do I do that? I'm new to java so I don't know much.</p>
  
  <blockquote>
    <p>It should print the following statistics:<br>
    - The total number of country names in the queue that begins with the same letter.<br>
    - To compute the above statistics you may use other data structures, such as Array, or ArrayList/Vector.</p>
  </blockquote>
  
  <p>Example: </p>
  
  <blockquote>
    <p>User inputs/what is in the queue: </p>
    
    <ol>
    <li>Bob</li>
    <li>Isabella</li>
    <li>Sean</li>
    <li>Suzy</li>
    <li>Sally</li>
    <li>Ida</li>
    </ol>
  </blockquote>
  
  <p>Output:</p>
  
  <blockquote>
    <p>Total number of countries start with I : 2 </p>
    
    <p>Total number of countries start with S : 3 </p>
  </blockquote>
  
  <p>I've tried searching around on this but I haven't really found a solid method to do this. Any help would be greatly appreciated.</p>