输入一个字符串,获取其中小写英文字母个数、数字个数其他符号个数

代码: package cn.tedu.string; public class StringText1 { public static void main(String[] args) { //对象 String str=“werugvy34523wsy dv-”; //表示小写英文字母 int letter=0; //表示数字 int num=0; //遍历字符串 for(int i=0;i<
相关文章
相关标签/搜索