Triangle.java

public class Triangle {
 
	enum Type { Equilateral, Isosceles, Scalene }
 
	static Type checkType(int a, int b, int c) {
		if((a==b) && (b==c))
			return Type.Equilateral;
		else if((a==b) || (b==c) || (a==c))
			return Type.Isosceles;
		else	
			return Type.Scalene;
	}
}