Hi,
I'm trying to do a boolean method
Code java:public boolean x() { if (y() >= z) { return true; } else { return false; } }
though I'm unsure how to send the print data out to:
I need it to print out YES if TRUE and NO if false.
How would I call the boolean x() method and test it for true and flase and print it?
Code java:public void f() { System.out.printf( "\nc:" + c ); //where would I write print in the boolean method? I thought these methods are just for returning true or false
Thanks for your help in advance
