returns an int array consisting of only the distinct elements in the ArrayList. Do not modify the inputted ArrayList. Note that this is a very common expectation we will give to you, and is featured in Assignment 5 often. It is almost always bad practice to modify objects that are passed as arguments to methods because, in Java, objects are passed by reference, and therefore changes to one affect all other instances of that object. For example: .