apparently this is lacking a return type, I can’t see how I can only return true if I have to place a return outside the if block, which is what the exception seems to be suggesting :S anyhow here’s the code any help would be appreciated:
public boolean hitTarget (int x, int y) {
if ((x>= this.boxX)&&(x<= (this.boxX +this.boxW))&&
(y>= this.boxY)&&(y<=this.boxY + this.boxH)) {
return true;
}//endIf
}