結果 : write a java program to find the first duplicate element in an array