Types Of Triangle
Code


# Code
```java []
class Solution {
    public String triangleType(int[] nums) {
        int a = nums[0];
        int b = nums[1];
        int c = nums[2];
        if(a+b>c && b+c>a && c+a>b){
            if(a==b && b==c && c==a) return "equilateral";
            if(a!=b && b!=c && c!=a) return "scalene";
            return "isosceles";
        }
        return "none";
    }
}
```
['Java']