@@ -0,0 +1,641 @@
+public class Solution %7B%0A    public static String lookAndSay(String s) %7B%0A        StringBuilder sb = new StringBuilder();%0A        int i = 0;%0A        while (i %3C s.length()) %7B%0A            char cur = s.charAt(i);%0A            int j = i;%0A            while (j %3C s.length() && s.charAt(j) == cur) %7B%0A                j++;%0A            %7D%0A            sb.append(j - i);%0A            sb.append(cur);%0A            i = j;%0A        %7D%0A        return sb.toString();%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        String s = %221%22;%0A        for (int i = 0; i %3C 10; i++) %7B%0A            System.out.println(s);%0A            s = lookAndSay(s);%0A        %7D%0A    %7D%0A%7D%0A

Solve question 18 in java