/*
* 作者:筱筱
* 日期:20170507
* 功能:编写一个程序,输出一个字符串中的大写英文字母数,小写英文字母数以及非英文字母数。
*/
public class Aa3Count {
public static void main(String[] args){
String st = "A123 C_Ddf8*gX";
int numCapital = 0;
int numlowercaseletter = 0;
int numOther = 0;
for(int i=0; i<st.length(); i
【Java】编写一个程序,输出一个字符串中的大写英文字母数,小写英文字母数以及非英文字母数
最新推荐文章于 2025-05-10 16:07:23 发布