1.
- Inserts a new value into the first position of the array
- Inserts a new value into the middle position of the array
- Inserts a new value into the last position of the array
- deletes a value from a specific position of the array
- finds and deletes a value from the array
Q48: What does the following code do?
int [] alpha = {10, 20, 30, 40, 50};
int [] beta = new int[alpha.length+1];
for (int i = 0; i < alpha.length; i++)
beta[i] = alpha[i];
beta[beta.length-1] = 42;
alpha = beta;