重复统计出现的次数
class ^! { public static void main(String[] args) { String str="aabbssddeeff"; int length =str.length(); while(length>0 ){ char c=str.charAt(0); str=str.replaceAll(String.valueOf(c),""); System.out.println(""+(length-str.length() )+c ); length=str.length(); } } }