반응형 Comparator1 Comparable vs Comparator Comparable is a interface you need to implement to a Object where a specific compare standard has to be defined by overriding compareTo method. compareTo needs to be returned as an int value, + for moving up a list, - for moving down, 0 for staying at the same place. Wrapper type data does NOT need comparable interface to be compared since all Wrapper class already has been implemented with a Co.. 2019. 12. 1. 이전 1 다음 반응형