为什么运行出来这么多句,最后的运行结果还有报错。return是这样用的吗
收起
方法需要返回结果才需要用return,从你的设计来看 move应该不需要有返回改成 public static void move(){ System.out.println("战舰左右移动");}
报告相同问题?