lots of exercises in java... from https://github.com/exercism/java

Triangle.java 650B

1234567891011121314151617181920
  1. class Triangle {
  2. Triangle(double side1, double side2, double side3) throws TriangleException {
  3. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  4. }
  5. boolean isEquilateral() {
  6. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  7. }
  8. boolean isIsosceles() {
  9. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  10. }
  11. boolean isScalene() {
  12. throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
  13. }
  14. }