class Triangle {

   public boolean equals(Object o) {
      if (!(o instanceof Triangle)) {
         return false;
      }
      Triangle t = (Triangle) o; 
      return (s1 == t.s1 && s2 == t.s2 && s3 == t.s3);
   }

   public  Triangle(double side1, double side2, double side3);

}