Java面试题--编程题

  若是一串字符如"aaaabbc中国1512"要分别统计英文字符的数量,中文字符的数量,和数字字符的数量,假设字符中没有中文字符、英文字符、数字字符以外的其余特殊字符。 int engishCount; int chineseCount; int digitCount; for(int i=0;i<str.length;i++) { char ch = str.charAt(i);
相关文章
相关标签/搜索