Currently the Java language allows to pass method parameters only by value. This means that if one wants to change a parameter in the method and keep the changed value outside the method there is no direct way to do it. For example if you want to write a method to swap values you cannot do it like that:

public void swap(int a, int b) {
int t = a;
a = b;
b = t;

you have to do it like that:

public void swap(int[] a, int[] b) {
int t = a[0];
a[0] = b[0];
b[0] = t;

Do you think including pass by reference construct similar to C++ "&", Pascal's "var" or C#'s "ref" is a good idea?