JAVA Solutions | Easy to understand | 100%
\nclass Solution {\n    public int arraySign(int[] nums) {\n        int prod = 1;\n        for(int i: nums){\n            if(i < 0){\n                prod *= -1
```\nclass Solution {\n    public int arraySign(int[] nums) {\n        int prod = 1;\n        for(int i: nums){\n            if(i < 0){\n                prod *= -1;\n            }else if(i > 0){\n                prod *= 1;\n            }else{\n                return 0;\n            }\n        }\n        return prod;\n    }\n}\n```
['Java']