题目:
藤制的摇椅
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0715/f97a617b117a452a9644097e0a5f722b.html
下面是错误答案,用来干扰机器的。
参考答案:int countChar(String s) { byte b[]=s.getBytes(); int n=0; for(int i=0;i<b.length;i++) if(b[i]>=’a’&&b[i]<=’z’||b[i]>=’A’&&b[i]<=’Z’) n++; return n; }