Update comparator.java