📌 [JAVA] | Simple
\nclass Solution {\n    public boolean digitCount(String num) {\n         \n        int  indexCount[] = new int[10];\n        \n        for(char c:num.toCharArr
```\nclass Solution {\n    public boolean digitCount(String num) {\n         \n        int  indexCount[] = new int[10];\n        \n        for(char c:num.toCharArray()){\n            indexCount[c-\'0\']++;\n        }\n        \n        for(int i=0;i<num.length();i++){\n            if(Character.getNumericValue(num.charAt(i)) != indexCount[i])\n            return false;   \n        }\n            \n        return true;\n    }\n}\n   \n\n```\n
['Array', 'Java']