public static String sayGoodBye(String name) {
return "Goodbye " + name + "!";
}
Function Call | Return Value | |||
---|---|---|---|---|
sayGoodBye("person") | → | |||
sayGoodBye("everyone") | → | |||
sayGoodBye("5") | → | |||
sayGoodBye("alpha") | → | |||
sayGoodBye("rain") | → | |||
sayGoodBye("school") | → | |||
sayGoodBye("") | → | |||
sayGoodBye("Matt") | → |
Experiment with this code on Gitpod.io