I\'m looking for a static method in the Java core libraries or some other commonly used dependency — preferably one of Apache — that does the following:
Don't be afraid of writing something yourself. As far as I know it doesn't exist. I think a reason for this is that the utility method decides which implementation of Collection it uses. In your case you chose for ArrayList, but there are a whole bunch of other collections.