hanoi(n-1,one,three,two); move(one,three); hanoi(n-1,two,one,three); } } public static void move(char x,char y) { (x); ("-->"); (y); } }
让更多人参与回答