Comparator interface Two methods:compare(),equals() oOnly need to implement compare( o Takes two Object as argument: compare(Object o1,Object o2) ●And returns ONegative value if o1 is less than o2 OZero value if o1 is equal to o2 Opositive value if o1 is greater than o2Comparator interface lTwo methods: compare(), equals() lOnly need to implement compare() lTakes two Object as argument: compare(Object o1, Object o2) lAnd returns ¡Negative value if o1 is less than o2 ¡Zero value if o1 is equal to o2 ¡positive value if o1 is greater than o2