static double sumOfSeries ( int n ) {
  return ( 0.666 ) * ( 1 - 1 / Math . pow ( 10 , n ) ) ;
}

static double sumOfSeries ( int n ) { return ( 0.666 ) * ( 1 - 1 / Math . pow ( 10 , n ) ) ; }
(method_declaration (modifiers) type: (floating_point_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (return_statement (binary_expression left: (parenthesized_expression (decimal_floating_point_literal)) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (binary_expression left: (decimal_integer_literal) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier))))))))))