I was wondering is someone could tell me why my code isn't
compiling - Java
------------------------------------------------------------------------------------------------------------
class Robot{
int serialNumber;
boolean flies,autonomous,teleoperated;
public void setCapabilities(int serialNumber, boolean flies,
boolean autonomous, boolean teleoperated){
this.serialNumber = serialNumber;
this.flies = flies;
this.autonomous = autonomous;
this.teleoperated = teleoperated;
}
public int getSerialNumber(){
return this.serialNumber;
}
public boolean canFly(){
return this.flies;
}
public boolean isAutonomous(){
return this.autonomous;
}
public boolean isTeleoperated(){
return this.teleoperated;
}
public String getCapabilities(){
StringBuilder str = new StringBuilder();
if(this.flies){str.append("canFly");str.append(" ");}
if(this.autonomous){str.append("autonomous");str.append("...