Assume that an ArrayList named salarySteps whose elements are of type Integer and that has exactly five elements has already been declared. Write a single statement to assign the value 30000 to the first element of this array.

LANGUAGE: JAVA

CHALLENGE:

Assume that an ArrayList named salarySteps whose elements are of type Integer and that has exactly five elements has already been declared.

Write a single statement to assign the value 30000 to the first element of this array.

SOLUTION:

salarySteps.set(0,30000);