package Examples; public class IntTriangle { int a ; int b ; int c ; public IntTriangle(int a, int b, int c) { if (a<=0) throw new IllegalArgumentException() ; if (b<=0) throw new IllegalArgumentException() ; if (c<=0) throw new IllegalArgumentException() ; this.a = a ; this.b = b ; this.c = c ; } public boolean isEquilateral() { return a==b && b==c ; } public boolean isIsoleces() { return a==b || b==c || a==c ; } public boolean isScalene() { return a!=b && b!=c && a!=c ; } }