Java: how to keep a method from altering a variable outside of itself?
599
Is Java "pass-by-reference" or "pass-by-value"?
37039
Is it possible to have class.property = x return something other than x?
13884
How to change a variable in a calling function from a called function?
52076
Why is an ArrayList parameter modified, but not a String parameter?
11318
How to circumvent using an out parameter in an anonymous method block?
140862
Why is it a bad practice to lock the object we are going to change?
58892
Can I use a variable to call a method?
22056
How to tell a lambda function to capture a copy instead of a reference in C#?
24596
Why can a function modify some arguments as perceived by the caller, but not others?
1777
Changing array in method changes array outside
121620
Random Number Generator: mainly how to stop repetition of numbers. Java
30387
How exactly does one “control for other variables”?
98802
How to trigger event when a variable's value is changed?
47542
How come this is happening in java?
37883
Java String variable setting - reference or value?
71353
What is the best way to implement constants in Java?
99882
python: how to have a property and with a setter function that detects all changes that happen to the value