public final class Arrays
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static <T> T[] |
addObject(T[] objects,
T newObject) |
Returns an array formed from adding the newObject to the elements
in the given array.
|
static <T> T[] |
removeObject(T[] array,
T object) |
Returns an array formed by removing the given object from the given array.
|
public static <T> T[] addObject(T[] objects,
T newObject)
objects - array with objects to be put in new arraynewObject - object placed at end of new arraypublic static <T> T[] removeObject(T[] array,
T object)
array - array with the objectsobject - object being removed