Assume that an ArrayList of Integers named salarySteps that contains exactly five elements has been declared and initialized.
LANGUAGE: JAVA
CHALLENGE:
Assume that an ArrayList of Integers named salarySteps that contains exactly five elements has been declared and initialized.
Write a statement that assigns the value 160000 to the last element of the ArrayList salarySteps.
SOLUTION:
salarySteps.set(4,160000);