find the frequency of elements in a java array
<p>I have an int array:</p>

<pre><code>{1,2,4,2,3,5,6,4,3}
</code></pre>

<p>How can I find frequencies of array elements like <code>1=1,2=2,3=2,4=4..</code>. I need a class which I can pass my array to and return an array which gives the count of array elements. ex:- <code>array{[0]=1,[1]=2,[2]=3,[3]=4..}</code> (for above example array);  </p>
