Amazon interview question

Please write a java code that print duplicates of an array.