How to return more than one value from a function in Java? Can anyone give sample code for doing this using tuples? I am not able to understand the concept of tuples.
You can't return more than one value.
You can return Array,Collection if it satisfies your purpose.
Note: It would be one value, reference to your Object[of array,collection] would be return.