結果 : write java code to print array elements appearing 2 or more times