static int max_element ( int [ ] arr ) {
  int max = arr [ 0 ] ;
  for ( int ele : arr ) if ( max < ele ) max = ele ;
  return max ;
}

static int max_element ( int [ ] arr ) { int max = arr [ 0 ] ; for ( int ele : arr ) if ( max < ele ) max = ele ; return max ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (array_access array: (identifier) index: (decimal_integer_literal)))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (return_statement (identifier))))