title: Java Array List and object passing
body: <p>I have a list of string in my code. I am passing that list of string to a function and modifying it.( I am adding/deleting few elements from the list).But i dont want these changes to get reflected in the caller function. The changes should be reflected only in the callee function. But because objects are passed by reference, I think the changes are getting reflected in both functions. How can I avoid this. Please help</p>