Inflearn Community Q&A
compareTo 함수에 대한 질문입니다.
Written on
·
225
0
public int compareTo(Fruit other) {
}
에서 name을 return 할 때도 compareTo 함수는 int를 return 하는 것인가요?
만약 그렇다면 음 0 양 의 숫자로 return 되어 순서를 표시하는 것인지 궁금합니다.
algorithm
Answer
This question is waiting for answers
Be the first to answer!





