static boolean isBlack ( int y , int x ) {
  try {
    if ( cv [ y ] [ x ] == '#' ) {
      return true ;
    }
    else {
      return false ;
    }
  }
  catch ( ArrayIndexOutOfBoundsException e ) {
    return false ;
  }
}

static boolean isBlack ( int y , int x ) { try { if ( cv [ y ] [ x ] == ' # ' ) { return true ; } else { return false ; } } catch ( ArrayIndexOutOfBoundsException e ) { return false ; } }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (try_statement body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (character_literal))) consequence: (block (return_statement (true))) alternative: (block (return_statement (false))))) (catch_clause (catch_formal_parameter (catch_type (type_identifier)) name: (identifier)) body: (block (return_statement (false)))))))