public static void main ( String [ ] args ) {
  Point l1 = new Point ( ) , r1 = new Point ( ) , l2 = new Point ( ) , r2 = new Point ( ) ;
  l1 . x = 0 ;
  l1 . y = 10 ;
  r1 . x = 10 ;
  r1 . y = 0 ;
  l2 . x = 5 ;
  l2 . y = 5 ;
  r2 . x = 15 ;
  r2 . y = 0 ;
  if ( doOverlap ( l1 , r1 , l2 , r2 ) ) {
    System . out . println ( "Rectangles Overlap" ) ;
  }
  else {
    System . out . println ( "Rectangles Don't Overlap" ) ;
  }
}

public static void main ( String [ ] args ) { Point l1 = new Point ( ) , r1 = new Point ( ) , l2 = new Point ( ) , r2 = new Point ( ) ; l1 . x = 0 ; l1 . y = 10 ; r1 . x = 10 ; r1 . y = 0 ; l2 . x = 5 ; l2 . y = 5 ; r2 . x = 15 ; r2 . y = 0 ; if ( doOverlap ( l1 , r1 , l2 , r2 ) ) { System . out . println ( " Rectangles ▁ Overlap " ) ; } else { System . out . println ( " Rectangles ▁ Don ' t ▁ Overlap " ) ; } }
(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: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))) consequence: (block (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 (string_literal))))))))