All pastes #901561 Raw Edit

Something

public text v1 · immutable
·published 2008-02-12 19:31 UTC
rendered paste body
import java.util.*;

public class Test implements Comparable {
   private String n="";

   public int compareTo(Object t) {
      if (t instanceof Test) {
         return n.compareTo(((Test)t).getValue());
      }
      return -1;
   }

   public String getValue() {
      return n;
   }
}