原文:輸入一行字符,分別統計出其中英文字母、空格、數字和其它字符的個數。

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