public static void main ( String args [ ] ) {
  int a = 20 ;
  int b = 30 ;
  int c = 10 ;
  int discriminant = disc ( a , b , c ) ;
  if ( discriminant > 0 ) {
    System . out . println ( "Discriminant is " + discriminant + " which is Positive" ) ;
    System . out . println ( "Hence Two Solutions" ) ;
  }
  else if ( discriminant == 0 ) {
    System . out . println ( "Discriminant is " + discriminant + " which is Zero" ) ;
    System . out . println ( "Hence One Solution" ) ;
  }
  else {
    System . out . println ( "Discriminant is " + discriminant + " which is Negative" ) ;
    System . out . println ( "Hence No Real Solutions" ) ;
  }
}

public static void main ( String args [ ] ) { int a = 20 ; int b = 30 ; int c = 10 ; int discriminant = disc ( a , b , c ) ; if ( discriminant > 0 ) { System . out . println ( " Discriminant ▁ is ▁ " + discriminant + " ▁ which ▁ is ▁ Positive " ) ; System . out . println ( " Hence ▁ Two ▁ Solutions " ) ; } else if ( discriminant == 0 ) { System . out . println ( " Discriminant ▁ is ▁ " + discriminant + " ▁ which ▁ is ▁ Zero " ) ; System . out . println ( " Hence ▁ One ▁ Solution " ) ; } else { System . out . println ( " Discriminant ▁ is ▁ " + discriminant + " ▁ which ▁ is ▁ Negative " ) ; System . out . println ( " Hence ▁ No ▁ Real ▁ Solutions " ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))))))))