static String yesno ( boolean b ) {
  return b ? "Yes" : "No" ;
}

static String yesno ( boolean b ) { return b ? " Yes " : " No " ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (boolean_type) name: (identifier))) body: (block (return_statement (ternary_expression condition: (identifier) consequence: (string_literal) alternative: (string_literal)))))