Java Using minimal Array
```\npublic int countConsistentStrings(String allowed, String[] words) {\n        boolean a[]=new boolean[26];\n        for(char c:allowed.toCharArray()){\n    
```\npublic int countConsistentStrings(String allowed, String[] words) {\n        boolean a[]=new boolean[26];\n        for(char c:allowed.toCharArray()){\n            a[c-\'a\']=true;\n        }\n        int count=0;\n        boolean flag=true;\n        for(String i:words){\n          flag=true;\n          for(char c:i.toCharArray()){\n            if(!a[c-\'a\']){\n                flag=false;\n                break;\n            }\n          }\n            if(flag){\n             count++;   \n            }\n        }\n        return count;\n    }
['Java']