华为机试题---控制台输入统计并输出每个字符在字符串中出现的次数,数字和空格除外,并按原始位置排序
publicclassSolution{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);Stringstr=sc.nextLine().replaceAll("\\s*","");printLetterNum(str);}publicstaticvoidprintLetterNum(Stringstr){//按照