private static void dfs1 ( int u ) {
  vis [ u ] = true ;
  for ( int i : adjList . get ( u ) ) {
    if ( ! vis [ i ] ) dfs1 ( i ) ;
  }
  stack . add ( u ) ;
}

private static void dfs1 ( int u ) { vis [ u ] = true ; for ( int i : adjList . get ( u ) ) { if ( ! vis [ i ] ) dfs1 ( i ) ; } stack . add ( u ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (true))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) body: (block (if_statement condition: (parenthesized_expression (unary_expression operand: (array_access array: (identifier) index: (identifier)))) consequence: (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))