0_0_39777712_1273\Main.java:1: 错误: 解析时已到达文件结尾
public class Main {public static void move( int n, String from, String buffer, String to) {//第一步: 递归结束的条件if (n == 1) {System. out. println("from" + from + "to" + to);return;}// n-1 个圆盘从 from - > buffermove(n - 1, from, to, buffer);//将 1 个圆盘从 from - > tomove(1, from, buffer, to);//将 n-1 个圆盘从 buffer - > tomove(n - 1, buffer, from, to);}public static void main( String[] args) {Hanoi. move(3, "石柱1", "石柱2", "石柱3");}}
^
1 个错误
|