它一直給我一個錯誤,在「虛空類型不允許在這裏。」錯誤「此處不允許使用虛空類型」。請幫助我
public class BugTester {
public static void main(String[] args) {
Bug bugsy = new Bug(10);
bugsy.move(); //now the position is 11
bugsy.turn();
bugsy.move(); //now the position is 10
bugsy.move();
bugsy.move();
bugsy.move();
// Error message highlights this.
System.out.println("The bug position is at "+bugsy.move());
}
}