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 in java ( which is not python ). Write a method that just returns array or list or any other object like this