Create printDuplicates.java