結果 : write a program to print the duplicate elements of an array in java