@@ -0,0 +1,330 @@
+public class ParenBit %7B%0A  public static void main (String... args) %7B%0A    // Result: (abc).%0A    System.out.println (new ParenBit ().parenBit (%22xy(abx)z%22));%0A  %7D%0A  %0A  public String parenBit (String str) %7B%0A    return str.equals (%22%22)?str:(str.indexOf (%22(%22)!=0?parenBit (str.substring(1)):str.substring (0, str.indexOf (%22)%22)+1));%0A  %7D%0A%7D%0A

Create ParenBit.java