public static void hanoitower ( int n , char from , char to , char aux ) {
  if ( n == 1 ) {
    System . out . println ( n + " " + from + "to" + to ) ;
    return ;
  }
  hanoitower ( n - 1 , from , aux , to ) ;
  System . out . println ( n + " " + from + "to" + to ) ;
  hanoitower ( n - 1 , aux , to , from ) ;
}

public static void hanoitower ( int n , char from , char to , char aux ) { if ( n == 1 ) { System . out . println ( n + " ▁ " + from + " to " + to ) ; return ; } hanoitower ( n - 1 , from , aux , to ) ; System . out . println ( n + " ▁ " + from + " to " + to ) ; hanoitower ( n - 1 , aux , to , from ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (string_literal)) right: (identifier)) right: (string_literal)) right: (identifier))))) (return_statement))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier) (identifier) (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (string_literal)) right: (identifier)) right: (string_literal)) right: (identifier))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier) (identifier) (identifier))))))