Hi,
I currently have the following code written
/**
* Checks if ball is touching or beyound the left- or right-hand boundary of the shapes window
*/
public boolean isTouchingLeftOrRight()
{
if (getBallXPos() <= 0 || getBallXPos() + 20 <= bottomEdge) {
System.out.println ("true");
} else {
System.out.println ("false");
}
}
however I receive a missing return statement. Any ideas on how to resolve?
Missing return.jpg