@@ -0,0 +1,347 @@
+public class NestParen %7B%0A  public static void main (String args%5B%5D) %7B%0A    // Result: true.%0A    System.out.println (new NestParen ().nestParen(%22((()))%22));%0A  %7D%0A  %0A  public boolean nestParen(String str) %7B%0A    return str.equals(%22%22)?true:(str.charAt(0)=='(' && str.charAt(str.length()-1)==')'?nestParen (str.substring (1, str.length()-1)):false);%0A  %7D%0A%7D%0A

Create NestParen.java