I\'m writing a method that receives any number of arguments and returns them modified. I have tried with varargs but it doesn\'t work, here you can see a simplified version of t
Change the method signature as List, then, you can expect this pass-by-reference behavior. Here, you are passing each argument individually, and java makes them as array internally and to the processing further.