private static int sDFS ( ) {
  int sum = 0 ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    if ( ! mark [ i ] ) {
      sum ++ ;
      DFS ( i ) ;
    }
  }
  return sum ;
}

private static int sDFS ( ) { int sum = 0 ; for ( int i = 0 ; i < n ; i ++ ) { if ( ! mark [ i ] ) { sum ++ ; DFS ( i ) ; } } return sum ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (unary_expression operand: (array_access array: (identifier) index: (identifier)))) consequence: (block (expression_statement (update_expression (identifier))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier)))))))) (return_statement (identifier))))