In need of explanation of how my Tower of Hanoi Recursion code works
问题 I am just getting into recursion and I think I have a basic understanding of how it works. I have this code for a Tower of Hanoi problem and I have been staring at it for an hour trying to figure out exactly what it is doing. The method 'moveDisks' is confusing to me. I was hoping someone could help explain what's going on in the method. I didn't write it. To try to understand I ran the code and put 2 for the number of disks. Here is what printed out: The moves are: Move disk 1 from A to C,