static void productOfLastN_Nodes ( Node head ) {
  if ( head == null ) return ;
  productOfLastN_Nodes ( head . next ) ;
  if ( n > 0 ) {
    prod = prod * head . data ;
    -- n ;
  }
}

static void productOfLastN_Nodes ( Node head ) { if ( head == null ) return ; productOfLastN_Nodes ( head . next ) ; if ( n > 0 ) { prod = prod * head . data ; -- n ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (null_literal))) consequence: (return_statement)) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))))) (expression_statement (update_expression (identifier)))))))