Passing variables into methods
If the variable passed is a primitive, only a copy of the variable is actually passed to the method. So modifying the variable within the method has no effect on the actual variable.
Views: 941 | | by Slicer
View this tutorial