Easy JAVA solution (single if statement)
\nclass Solution {\n    public int numOfPairs(String[] nums, String target) {\n        int c=0;\n        for(int i =0;i<nums.length;i++)\n        {\n           
```\nclass Solution {\n    public int numOfPairs(String[] nums, String target) {\n        int c=0;\n        for(int i =0;i<nums.length;i++)\n        {\n            for(int j =0;j<nums.length;j++)\n            {\n                if(i!=j && (nums[i]+nums[j]).equals(target))\n                {\n                   c++;\n                }\n            }\n        }\n        return c;\n    }\n}\n```
['Java']