You can do it in .NET by using the keyword "ref". Is there any way to do so in Java?
- Java – the difference between public, protected, package-private and private in Java
- Java – Avoiding NullPointerException in Java
- Java – How to call one constructor from another in Java
- Java – How to read / convert an InputStream into a String in Java
- Python – How to pass a variable by reference
- Java – Does Java support default parameter values
- Java – How to convert a String to an int in Java