Android Utililty Methods Array Cut

List of utility methods to do Array Cut

Description

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

Method

Objectcut(Object obj, int size)
cut
int j;
if ((j = Array.getLength(obj)) == 1) {
    return Array.newInstance(obj.getClass().getComponentType(), 0);
int k;
if ((k = j - size - 1) > 0) {
    System.arraycopy(obj, size + 1, obj, size, k);
j--;
Object obj1 = Array.newInstance(obj.getClass().getComponentType(),
        j);
System.arraycopy(obj, 0, obj1, 0, j);
return obj1;