1.
Q7: What does the following code do?
ArrayList<Integer> alpha = new ArrayList<>(Arrays.asList(10, 20, 30, 40, 50));
ArrayList<Integer> beta = new ArrayList<>(alpha);
beta.add(42);
alpha = beta;
- Inserts a new value into the first position of the list
- Inserts a new value into the middle position of the list
- Inserts a new value into the last position of the list
- Deletes a value from a specific position of the list
- Finds and deletes a value from the list