EASY SOLUTION 💡 | CORRECT ✅ | BEATS 91.51% LEETCODERS 💻🏆
\n# Code\njava []\nclass Solution {\n    public int countPairs(List<Integer> nums, int target) {\n        int count=0;\n        for(int i=0;i<nums.size()-1;i++)
\n# Code\n```java []\nclass Solution {\n    public int countPairs(List<Integer> nums, int target) {\n        int count=0;\n        for(int i=0;i<nums.size()-1;i++){\n            for(int j=i+1;j<nums.size();j++){\n                if(nums.get(i)+nums.get(j)<target){\n                    count++;\n                }\n            }\n        }\n\n        return count;\n    }\n}\n\n\n```
['Java']