public static void main ( String [ ] args ) {
  double p [ ] = {
    0.0 , 0.3 , 0.4 , 0.7 };
    int n = p . length - 1 ;
    System . out . println ( Probability ( p , n ) ) ;
  }
  
public static void main ( String [ ] args ) { double p [ ] = { 0.0 , 0.3 , 0.4 , 0.7 } ; int n = p . length - 1 ; System . out . println ( Probability ( p , n ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_initializer (decimal_floating_point_literal) (decimal_floating_point_literal) (decimal_floating_point_literal) (decimal_floating_point_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))))))