Can you help me to write this method?
//A duplicate in an array is a value that appears more than once as element of the array.
* Write a method static int numberOfDuplicates(int[] A) that returns the number of distinct duplicates in the array A.
* Write also a method static int numberOfDistinctValues(int[] A) that returns the number of distinct values in the array A.//
greets
Frank