Java || Simple Solution || 100% Beats
\n# Code\n\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Solution {\n    public int countPrefixes(String[] words, String s) {\n        int count
\n# Code\n```\nimport java.util.ArrayList;\nimport java.util.List;\n\nclass Solution {\n    public int countPrefixes(String[] words, String s) {\n        int count = 0;\n        for (String i : words)\n            if (s.startsWith(i)) count++;\n        return count;\n    }\n}\n\n```
['Array', 'String', 'Java']