public static int find ( int pnt [ ] , int p ) {
  if ( pnt [ p ] == p ) return p ;
  return pnt [ p ] = find ( pnt , pnt [ p ] ) ;
}

public static int find ( int pnt [ ] , int p ) { if ( pnt [ p ] == p ) return p ; return pnt [ p ] = find ( pnt , pnt [ p ] ) ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier) dimensions: (dimensions)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) consequence: (return_statement (identifier))) (return_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (array_access array: (identifier) index: (identifier))))))))