Use the return value of method x() for the conditional in an if statement like you did in the body of the x() method. If x() returns true print one thing, else print something else.
It sure seems...
Type: Posts; User: jps
Use the return value of method x() for the conditional in an if statement like you did in the body of the x() method. If x() returns true print one thing, else print something else.
It sure seems...
Is the method supposed to return a boolean or a String? (true/false) or ("YES"/"NO")
Is the method supposed to print something or return something to be printed? (edit) ...or both?