Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,097

    Re: Cannot pass variables?

    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.
  2. Replies
    3
    Views
    1,097

    Re: Cannot pass variables?

    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.
Results 1 to 2 of 2