J
jesssi1203
Hi,
I am new to Java and I was wondering what's the difference between
implementing the Comparable interface, and just adding a "int
compareTo" method in the class? Essentially they're doing the same
thing, right? Thanks.
I am new to Java and I was wondering what's the difference between
implementing the Comparable interface, and just adding a "int
compareTo" method in the class? Essentially they're doing the same
thing, right? Thanks.