貌似正解,我继续看看
一样不能对数量进行排序作者: hello world 时间: 2011-12-20 13:16
public static void main(String[] args){
String str = "asasdasdasdasdasdasdsa";
char[] ch = str.toCharArray();
int[] datas = new int[26];
int len = ch.length;
for(int i = 0; i < len; i++){
int iii = (ch[i]-'a');
datas[(ch[i]-'a')] ++ ;
}