public static int subAbs ( int A , int B , int C , int D ) {
  int sub = Math . min ( B , D ) - Math . max ( A , C ) ;
  if ( sub > 0 ) {
    return sub ;
  }
  else {
    return 0 ;
  }
}

public static int subAbs ( int A , int B , int C , int D ) { int sub = Math . min ( B , D ) - Math . max ( A , C ) ; if ( sub > 0 ) { return sub ; } else { return 0 ; } }
(method_declaration (modifiers) type: (integral_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))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (return_statement (identifier))) alternative: (block (return_statement (decimal_integer_literal))))))