static boolean checkFunny ( String word ) {
  int i = 1 ;
  int j = word . length ( ) - 2 ;
  word = word . toLowerCase ( ) ;
  while ( i <= j ) {
    if ( ( Math . abs ( word . charAt ( i ) - word . charAt ( i - 1 ) ) ) != Math . abs ( ( word . charAt ( j ) - word . charAt ( j + 1 ) ) ) ) return false ;
    i ++ ;
    j -- ;
  }
  return true ;
}

static boolean checkFunny ( String word ) { int i = 1 ; int j = word . length ( ) - 2 ; word = word . toLowerCase ( ) ; while ( i <= j ) { if ( ( Math . abs ( word . charAt ( i ) - word . charAt ( i - 1 ) ) ) != Math . abs ( ( word . charAt ( j ) - word . charAt ( j + 1 ) ) ) ) return false ; i ++ ; j -- ; } return true ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))))))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))))))))) consequence: (return_statement (false))) (expression_statement (update_expression (identifier))) (expression_statement (update_expression (identifier))))) (return_statement (true))))