static void preprocess ( int u ) {
  cnt [ u ] = 1 ;
  for ( int v : adjList [ u ] ) {
    preprocess ( v ) ;
    cnt [ u ] += cnt [ v ] ;
  }
}

static void preprocess ( int u ) { cnt [ u ] = 1 ; for ( int v : adjList [ u ] ) { preprocess ( v ) ; cnt [ u ] += cnt [ v ] ; } }
(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: (decimal_integer_literal))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (array_access array: (identifier) index: (identifier)) body: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier))))))))