题目内容
下面的代码从键盘输入字符,直到遇到#号结束,统计字母,数字的个数,补充完成代码:public static void main(String[] args) throws IOException {char ch;int ziMu=0;//字母int shuZi = 0;//数字while(true){ch = (char)System.in.read();if(ch=='#'){___________________;}if(ch>='A'&&ch<='Z'|| ______________){_______________________;}else if(ch>='0'&&ch<='9'){_________;}}}
查看答案
搜索结果不匹配?点我反馈