blob: 1a866ec19294c36c19c66cd21b1b9cd4e7be68fc (
plain)
1
2
3
4
5
6
|
public class Number implements Comparable<Number> {
private int i;
public Number(int i) { this.i = i; }
public int getValue() { return i;}
public int compareTo(Number that) { return this.getValue() - that.getValue(); }
}
|