static int SumOfAmicable ( int n ) {
  int sum = 0 ;
  Set < Integer > s = AMICABLE ( ) ;
  for ( Integer x : s ) {
    if ( x <= n ) sum += x ;
  }
  return sum ;
}

static int SumOfAmicable ( int n ) { int sum = 0 ; Set < Integer > s = AMICABLE ( ) ; for ( Integer x : s ) { if ( x <= n ) sum += x ; } return sum ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (enhanced_for_statement type: (type_identifier) name: (identifier) value: (identifier) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (return_statement (identifier))))