public static void main ( String [ ] args ) {
  int arr [ ] = {
    - 4 , - 2 , 3 , 7 , 5 , 0 , 1 };
    int n = arr . length ;
    pair product = getMaxandMinProduct ( arr , n ) ;
    System . out . printf ( "Minimum product is %d and " + "Maximum product is %d" , product . first , product . second ) ;
  }
  
public static void main ( String [ ] args ) { int arr [ ] = { - 4 , - 2 , 3 , 7 , 5 , 0 , 1 } ; int n = arr . length ; pair product = getMaxandMinProduct ( arr , n ) ; System . out . printf ( " Minimum ▁ product ▁ is ▁ % d ▁ and ▁ " + " Maximum ▁ product ▁ is ▁ % d " , product . first , product . second ) ; }
(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: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_initializer (unary_expression operand: (decimal_integer_literal)) (unary_expression operand: (decimal_integer_literal)) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (string_literal) right: (string_literal)) (field_access object: (identifier) field: (identifier)) (field_access object: (identifier) field: (identifier)))))))