public static <T> List<T> asList(T... array) {
    return new ArrayList<>(Arrays.asList(array));
  }
Use this instead of Arrays.asList(T... array) when you need a modifiable List.

Returns a modifiable list containing the elements of the specified array.

<p>
Example usage:

<pre>
List&lt;String&gt; stooges = Arrays.asList("Larry", "Moe", "Curly");
stooges.remove("Curly");
</pre>

@param <T> the class of the objects in the array
@param array the array of elements to be added to the list
@return a list containing the elements of the specified array
geode-core/src/main/java/org/apache/geode/internal/util/ArrayUtils.java