public static boolean val ( String x , String y , String z ) {
  try {
    format . parse ( x + "/" + y + "/" + "20" + z ) ;
  }
  catch ( ParseException e ) {
    return false ;
  }
  catch ( IllegalArgumentException e ) {
    return false ;
  }
  return true ;
}

public static boolean val ( String x , String y , String z ) { try { format . parse ( x + " / " + y + " / " + "20" + z ) ; } catch ( ParseException e ) { return false ; } catch ( IllegalArgumentException e ) { return false ; } return true ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier))) body: (block (try_statement body: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (string_literal)) right: (identifier)) right: (string_literal)) right: (string_literal)) right: (identifier)))))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (return_statement (false)))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (return_statement (false))))) (return_statement (true))))