private static void print ( int a , int b , int c , int d , int i , int j , int k ) {
  StringJoiner sj = new StringJoiner ( "" ) ;
  sj . add ( String . valueOf ( a ) ) ;
  if ( i == 0 ) {
    sj . add ( "+" ) ;
  }
  else {
    sj . add ( "-" ) ;
  }
  sj . add ( String . valueOf ( b ) ) ;
  if ( j == 0 ) {
    sj . add ( "+" ) ;
  }
  else {
    sj . add ( "-" ) ;
  }
  sj . add ( String . valueOf ( c ) ) ;
  if ( k == 0 ) {
    sj . add ( "+" ) ;
  }
  else {
    sj . add ( "-" ) ;
  }
  sj . add ( String . valueOf ( d ) ) ;
  sj . add ( "=7" ) ;
  System . out . println ( sj . toString ( ) ) ;
}

private static void print ( int a , int b , int c , int d , int i , int j , int k ) { StringJoiner sj = new StringJoiner ( " " ) ; sj . add ( String . valueOf ( a ) ) ; if ( i == 0 ) { sj . add ( " + " ) ; } else { sj . add ( " - " ) ; } sj . add ( String . valueOf ( b ) ) ; if ( j == 0 ) { sj . add ( " + " ) ; } else { sj . add ( " - " ) ; } sj . add ( String . valueOf ( c ) ) ; if ( k == 0 ) { sj . add ( " + " ) ; } else { sj . add ( " - " ) ; } sj . add ( String . valueOf ( d ) ) ; sj . add ( " = 7" ) ; System . out . println ( sj . toString ( ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))))