@@ -0,0 +1,920 @@
+public class LeetCode0038 %7B%0A    public String countAndSay(int n) %7B%0A        if (n %3C 1) %7B%0A            return null;%0A        %7D%0A        StringBuilder sb = new StringBuilder();%0A        String str = %221%22;%0A        for (int i = 2; i %3C= n; i++) %7B%0A            char pre = str.charAt(0);%0A            int count = 1;%0A            for (int j = 1; j %3C str.length(); j++) %7B%0A                char c = str.charAt(j);%0A                if (c != pre) %7B%0A                    sb.append(count).append(pre);%0A                    count = 1;%0A                    pre = c;%0A                %7D else %7B%0A                    count++;%0A                %7D%0A            %7D%0A            sb.append(count).append(pre);%0A            str = sb.toString();%0A            sb.setLength(0);%0A        %7D%0A        return str;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        LeetCode0038 leetcode = new LeetCode0038();%0A        System.out.println(leetcode.countAndSay(5));%0A    %7D%0A%7D

Add LeetCode0038.java