Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Number.java 229B

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