@@ -0,0 +1,700 @@
+package LeetCode;%0D%0A%0D%0Apublic class CountAndSay %7B%0D%0A%09public String countAndSay(int n) %7B%0D%0A%09%09StringBuilder sb = new StringBuilder();%0D%0A%09%09int numberCount = 0;%0D%0A%09%09Character tempNumber = ' ';%0D%0A%09%09String initor = %221%22;%0D%0A%09%09for (int c = 2; c %3C= n; c++) %7B%0D%0A%09%09%09sb.setLength(0);%0D%0A%09%09%09numberCount = 0;%0D%0A%09%09%09tempNumber = ' ';%0D%0A%09%09%09for (int i = 0; i %3C initor.length(); i++) %7B%0D%0A%09%09%09%09if (initor.charAt(i) != tempNumber) %7B%0D%0A%09%09%09%09%09if (numberCount != 0) %7B%0D%0A%09%09%09%09%09%09sb.append(numberCount).append(tempNumber);%0D%0A%09%09%09%09%09%7D%0D%0A%09%09%09%09%09tempNumber = initor.charAt(i);%0D%0A%09%09%09%09%09numberCount = 1;%0D%0A%09%09%09%09%7D else %7B%0D%0A%09%09%09%09%09numberCount++;%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%7D%0D%0A%09%09%09sb.append(numberCount).append(tempNumber);%0D%0A%0D%0A%09%09%09initor = sb.toString();%0D%0A%09%09%7D%0D%0A%09%09return initor;%0D%0A%09%7D%0D%0A%7D%0D%0A

add Count and Say