This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
compareTo takes one argument of the same type and returns a negative int, zero, or positive int based on comparison.
You've completed the free preview. Subscribe to unlock every lesson in every course.