@@ -0,0 +1,1106 @@
+public class Solution %7B%0A    public static boolean isAbbr(String name, String abbr) %7B%0A        int namePos = 0;%0A        int abbrPos = 0;%0A        while (namePos %3C name.length() && abbrPos %3C abbr.length()) %7B%0A            if (Character.isDigit(abbr.charAt(abbrPos))) %7B%0A                int digitEnd = abbrPos;%0A                while (Character.isDigit(abbr.charAt(digitEnd))) %7B%0A                    digitEnd++;%0A                %7D%0A                int abbrNum = Integer.parseInt(abbr.substring(abbrPos, digitEnd));%0A                namePos += abbrNum;%0A                abbrPos = digitEnd;%0A            %7D else %7B%0A                if (name.charAt(namePos) != abbr.charAt(abbrPos)) %7B%0A                    return false;%0A                %7D%0A                namePos++;%0A                abbrPos++;%0A            %7D%0A        %7D%0A        return namePos == name.length() && abbrPos == abbr.length();%0A    %7D%0A    %0A    public static void main(String%5B%5D args) %7B%0A        System.out.println(isAbbr(%22LOCALIZATION%22, %22L10N%22));%0A        System.out.println(isAbbr(%22LOCALIZATION%22, %22L9N%22));%0A        System.out.println(isAbbr(%22LOCALIZATION%22, %22L10Q%22));%0A    %7D%0A%7D%0A

Add java solution to q2