title: Java: Check if exists three or more matches in array
body: <p>I wish to make a function that checks whether theres any number in the array that exist three or more times.</p>
  
  <p>So example this array:</p>
  
  <blockquote>
    <p>4 - 6 - 14 - 8 - 6 - 15 - 14 - 15 - 13
    - 10 -</p>
  </blockquote>
  
  <p>Shouldnt output anything, but this:</p>
  
  <blockquote>
    <p>4 - 6 - 14 - 8 - 6 - 15 - 14 - 15 - 14
    - 10 -</p>
  </blockquote>
  
  <p>Should systemout print output that the number 14 exists three times.</p>
  
  <p>How should this be done? I started making a for loop,</p>
  
  <pre><code>for(int i=0; i&lt;array.length; i++){
  }
  </code></pre>
  
  <p>And then I got stuck, how can i make this?</p>