Good evening,
I am fairly new at java and need help.
I have spent so much time trying to understand how to output my recursive solution to the tower of hanoi problem that I am now having a hard time seeing where I am going wrong.
I would like to output my result into a text file, instead of having this expected resulted in my text file as follows:
1 --> 3
1 --> 2
3 --> 2
1 --> 3
2 --> 1
2 --> 3
1 --> 3
I get this in my text file:
1 --> 3
To me it looks like my code solution is not going through the whole recurtion but I don't know how to fix it.
If somebody could help me, I would really really appreciate it.
Thank you in advance,
John