Quote (ferf @ Mar 9 2017 05:28pm)
Can you be more specific with some examples?
So if you need a function that is going to get a message from a user then you have that function return a String, because user message would be a string.
If the function is to find a square root of a number you would probably return a double, because the square root would probably be a double.
If you just want output a message to the screen and do nothing else, you would return void since you don't actually need a value to be returned at all. Although sometimes functions like these return a boolean, true for success and false for some kind of failure. It's up to you to decide how to do it.