public class MyClass implements Comparable {
public int compareTo(Object o) {
// If this < o, return a negative value
// If this = o, return 0
// If this > o, return a positive value
}
}
...Read more
FreeCode, Example Code,Free Programming Source Code: The FreeCode-FreeCode blog is the largest collection of free Internet related source code. Free programs are available in the following languages: C/C++, Java, Javascript, Ajax and Perl...
public class MyClass implements Comparable {
public int compareTo(Object o) {
// If this < o, return a negative value
// If this = o, return 0
// If this > o, return a positive value
}
}
...