@@ -0,0 +1,671 @@
+class Solution %7B%0A    private static Map%3CCharacter, Character%3E charMap = new HashMap%3C%3E();%0A    static %7B%0A        charMap.put('%5B', '%5D');%0A        charMap.put('%7B', '%7D');%0A        charMap.put('(', ')');%0A    %7D%0A    public boolean isValid(String s) %7B%0A        Stack%3CCharacter%3E stack = new Stack%3C%3E();%0A%0A        for (char c : s.toCharArray()) %7B%0A            Character rightPair = charMap.get(c);%0A        %0A            if (null == rightPair) %7B%0A                if (stack.empty() %7C%7C charMap.get(stack.pop()) != c) %7B%0A                    return false;%0A                %7D%0A            %7D else %7B%0A                stack.push(c);%0A            %7D%0A        %7D%0A        %0A        return stack.empty();%0A    %7D%0A%7D%0A

Create IsValidPar.java