If you put the values in an array you would be able to swap them
It is not often that you swap the values of class variables. There wouldn't be a need for a method.
Type: Posts; User: Norm
If you put the values in an array you would be able to swap them
It is not often that you swap the values of class variables. There wouldn't be a need for a method.
Java passes the values contained in the variables which the method receives in new temporary variables.
There is no way to change the contents of the original variables.