The word "function" is generic and is used in lots of other programming languages, not just Java. In most general terms: A function is something that can take some arguments and can return a value. ...
Type: Posts; User: Zaphod_b
The word "function" is generic and is used in lots of other programming languages, not just Java. In most general terms: A function is something that can take some arguments and can return a value. ...
Here's the thing: In Java a function can return (at most) one thing.
If you want the function to "return" two things and the things are reference objects, you can send the function some...