请编写方法intcountChar(Strings),该方法的功能是统计已知字符串s中字母的个数。例如:countCha

请编写方法intcountChar(Strings),该方法的功能是统计已知字符串s中字母的个数。例如:countChar("A1Bd56D")的返回值为4。

时间:2024-05-15 14:31:34

相似题目