原文:输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。

public static void main String args 输入一行字符,分别统计出其中英文字母 空格 数字和其它字符的个数。 String str ABab哈哈 , int letter 字母 int space 空格 int number 数字 int other 其他 for int i i lt str.length i char ch str.charAt i 从字符串中获取 ...

2018-08-11 12:36 0 995 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM