||Beats 100 % || 0 ms|| Very Easy Beginner Friendly Java Solution ||
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n## please Upvote..........................\n```**\nclass Solution {\n    public int arraySign(int[] nums) {\n        double prod=1;\n        for(int i=0;i<nums.length;i++)\n        {\n            prod*=nums[i];\n        }\n        if(prod<0)return -1;\n        if(prod>0)return 1;\n        else return 0;\n    }\n}\n```
['Java']