Create compressDuplicates.java