public String displayType(int side1, int side2,int side3) { if(( side1+side2 > side3)) if(( side1==side2) && (side2==side3))//tell if
As the final logic (in your case) will always be true, you do not need the final else if
else if
simply
return ("Scalene Triangle.");
But what will happen if the below if false?
if(( side1+side2 > side3))
You need to return something.