輸入一個字符串,輸出每個字符的個數

代碼: package cn.tedu.string; public class StringText4 { public static void main(String[] args) { //字符串對象 String str=「wshvb2398ew28tfgh」; //定義布爾數組表示字符串中字符狀態 boolean[] bs=new boolean[str.length()]; //初始化
相關文章
相關標籤/搜索