結果 : program to count total number of duplicate elements in an array in java