统计字符串中出现字母的个数

      for(int i = 0; i < chars.length; i++)

           counts[chars[i] - 'a']++;

原文地址:https://www.cnblogs.com/jiangjh/p/2084828.html