how to count the duplicate integer using hash map in java : <p>suppose there are an array [1,2,4,5,1,6,1,5,1,7,8,1]
and i want to find the repeated number in array like 1 is repeated  5 time how we can get  using hash map .</p>

<p>Other Question 
 we can find repeated number in array without using key in hash map </p>
