Easy Java Solution
Code\njava []\nclass Solution {\n    public int minElements(int[] nums, int limit, int goal) {\n        long sum = 0;\n        for(int i=0;i<nums.length;i++){\n
# Code\n```java []\nclass Solution {\n    public int minElements(int[] nums, int limit, int goal) {\n        long sum = 0;\n        for(int i=0;i<nums.length;i++){\n            sum += nums[i];\n        }\n        long difference = Math.abs(sum-goal);\n        if(difference == 0){\n            return 0;\n        }\n        long min = difference / limit; \n        if (difference % limit != 0) {\n            min += 1; \n        }\n        \n        return (int)min;\n    }\n}\n```
['Java']