21 int[] to_return =
new int[current.length+1];
22 for(
int i=0; i<current.length; i++)
23 to_return[i]=current[i];
24 to_return[to_return.length-1]=elem;
35 int[] to_return =
new int[current.length-1];
36 for(
int i=0,j=0; i<current.length; i++,j++)
40 to_return[j] = current[i];
52 for(
int i=0; i<current.length; i++)
static int[] addElement(int[] current, int elem)
static int linearSearch(int[] current, int value)
static int[] deleteElement(int[] current, int index)