Easy Java Solution
IntuitionSchool Level Mathematics., if sum of any two sides is greater than the third one, then it is a valid triangle.Approach
nums contains 3 values, denoting
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->
School Level Mathematics., if sum of any two sides is greater than the third one, then it is a valid triangle.

# Approach
<!-- Describe your approach to solving the problem. -->
1. `nums` contains 3 values, denoting sides of the triangle., so we stored that into three variables, named `a`,`b`and `c`.
2.  If all the three sides are equal., its `equilateral`.
3. If all the three sides are different., its `scalene`.
4. Rest, its `isosceles`.
5. If the condition -> sum of any two sides is greater than the third one., becomes false., return  `none`.
---
**UPVOTE PLEASE**
---------
---

# Complexity
- Time complexity: $$O(1)$$
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:$$O(1)$$
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```java []
class Solution {
    public String triangleType(int[] nums) {
        int a = nums[0], b = nums[1], 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']