Simple JAVA Solution
```\nclass Solution {\n    public int waysToSplitArray(int[] nums) {\n        long sum = 0;\n        for(int i : nums){\n            sum+=i;\n        }\n       
```\nclass Solution {\n    public int waysToSplitArray(int[] nums) {\n        long sum = 0;\n        for(int i : nums){\n            sum+=i;\n        }\n        int sol = 0;\n        long localSum = 0;\n        for(int i=0; i<nums.length-1;i++){\n            localSum += nums[i];\n            if(localSum >= sum-localSum){\n                sol++;\n            }\n        }\n        return sol;\n    }\n}
['Java']