Android Utililty Methods Array Add

List of utility methods to do Array Add

Description

The list of methods to do Array Add are organized into topic(s).

Method

Objectadd(Object array, int index, Object element, Class clss)
Underlying implementation of add(array, index, element) methods.
T[]add(T[] array, T element)

Copies the given array and adds the given element at the end of the new array.

The new array contains the same elements of the input array plus the given element in the last position.

T[]add(T[] array, int index, T element)

Inserts the specified element at the specified position in the array.

boolean[]add(boolean[] array, boolean element)

Copies the given array and adds the given element at the end of the new array.

The new array contains the same elements of the input array plus the given element in the last position.

boolean[]add(boolean[] array, int index, boolean element)

Inserts the specified element at the specified position in the array.

byte[]add(byte[] array, byte element)

Copies the given array and adds the given element at the end of the new array.

The new array contains the same elements of the input array plus the given element in the last position.

byte[]add(byte[] array, int index, byte element)

Inserts the specified element at the specified position in the array.

char[]add(char[] array, char element)

Copies the given array and adds the given element at the end of the new array.

The new array contains the same elements of the input array plus the given element in the last position.

char[]add(char[] array, int index, char element)

Inserts the specified element at the specified position in the array.

double[]add(double[] array, double element)

Copies the given array and adds the given element at the end of the new array.

The new array contains the same elements of the input array plus the given element in the last position.