static boolean solve ( double r , double d , double xi , double yi , double ri ) {
  double dis = Math . sqrt ( ( ( xi * xi ) + ( yi * yi ) ) ) ;
  if ( ( r - d ) <= ( dis - ri ) && r >= ( dis + ri ) ) return true ;
  return false ;
}

static boolean solve ( double r , double d , double xi , double yi , double ri ) { double dis = Math . sqrt ( ( ( xi * xi ) + ( yi * yi ) ) ) ; if ( ( r - d ) <= ( dis - ri ) && r >= ( dis + ri ) ) return true ; return false ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier))) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) consequence: (return_statement (true))) (return_statement (false))))