JAVA Beginner Friendly fast solution
class Solution {\n    public int prefixCount(String[] words, String pref) {\n        int count =0 ;\n      for(int i = 0 ;i<words.length ;i++){\n        int l =
class Solution {\n    public int prefixCount(String[] words, String pref) {\n        int count =0 ;\n      for(int i = 0 ;i<words.length ;i++){\n        int l = pref.length();\n       if(l<=words[i].length()){\n          String sub = words[i].substring(0,l);\n        if(pref.equals(sub))\n          count++;\n       }\n      }\n      return count;\n    }\n}
['Java']