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

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

LANGUAGE: Java

CHALLENGE:

Assume that an array named salarySteps whose elements are of type int 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[0] = 30000;

Add comment