JAVA FOR LOOP SOLUTION ➿
\nclass Solution {\n    public int numOfPairs(String[] nums, String target) {\n        int count = 0;\n        for (int i = 0; i < nums.length; i++) {\n        
```\nclass Solution {\n    public int numOfPairs(String[] nums, String target) {\n        int count = 0;\n        for (int i = 0; i < nums.length; i++) {\n            for (int j = 0; j < nums.length; j++) {\n                if (i != j && nums[i].concat(nums[j]).equals(target)) {\n                    count++;\n                }\n            }\n        }\n        return count;\n    }\n}\n```
['Java']