static String handan ( int a ) {
  if ( ban2 [ a ] % 2 == 0 ) {
    return ban [ a ] ;
  }
  else {
    if ( ban [ a ] . equals ( "B" ) ) {
      return "W" ;
    }
    else {
      return "B" ;
    }
  }
}

static String handan ( int a ) { if ( ban2 [ a ] % 2 == 0 ) { return ban [ a ] ; } else { if ( ban [ a ] . equals ( " B " ) ) { return " W " ; } else { return " B " ; } } }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (return_statement (array_access array: (identifier) index: (identifier)))) alternative: (block (if_statement condition: (parenthesized_expression (method_invocation object: (array_access array: (identifier) index: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) consequence: (block (return_statement (string_literal))) alternative: (block (return_statement (string_literal))))))))