I'm getting bad operantd error help :(
import java.util.Scanner; enum Type {EQUILATERAL, ISOSCELES, SCALENE, NOTTRIANGLE} class PossibleTriangle { private int a; private int b; private int c; private Type pt; public PossibleTriangle () { a = ' '; b = ' '; c = ' '; pt = Type.NOTTRIANGLE; } public PossibleTriangle (int a, int b, int c) { this.a = a; this.b = b; this.c = c; pt = getType (); } public PossibleTriangle (PossibleTriangle pt) { this (pt.a, pt.b, pt.c); } private boolean isTriangle () { if (a + b > c && b + c > a && c + a > b && a >= 1 && b >= 1 && c >= 1) return true; else return false; } private Type getType () { if (isTriangle () && (a = b) && (b = c) && (c = a)) return Type.EQUILATERAL; else if ((isTriangle () & (a = b))) return Type.ISOSCELES; else if ((isTriangle () & (a != b != c))) return Type.SCALENE; else return Type.NOTTRIANGLE; } im getting bad operand error on && for first two of the lines and boolean and int error on != private Type getType () { if (isTriangle () && (a = b) && (b = c) && (c = a)) return Type.EQUILATERAL; else if ((isTriangle () & (a = b))) return Type.ISOSCELES; else if ((isTriangle () & (a != b != c))) return Type.SCALENE; else return Type.NOTTRIANGLE; }