1.
Q1: Assume the following declarations:
ArrayList<Integer> beta = new ArrayList<Integer>(Arrays.asList(0, 0, 0));
Evaluate these statements:
beta.set(1, 22);
beta.set(0, beta.get(1) - 11);
beta.set(2, beta.get(0) + beta.get(1));
Give the contents of list
beta
after the execution of the above statements:
beta[0] =
beta[1] =
beta[2] =