Hi all
I am currently working on a if else statement within a method and I need it to send a message to the receiver with value of the argument from the method in the message. to clarify if the value of the argument is 1, I need to make the method send the message chicken1(). The code is below:
public void countChickens(int chickens) { if (chickens >6) { this.chickens(); } }
I have left the else part out as that is working fine. Also, this.chickens(); is my attempt to make this work but ive been working on this for ages and I cant seem to resolve the problem.
any help is very appreciated.