asked 230k views
0 votes
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

asked
User Ewernli
by
7.6k points

1 Answer

4 votes

Answer:

See the explanation section

Step-by-step explanation:

int[] salarySteps = new int[5];

salarySteps[0] = 30000;

answered
User Florian Thuin
by
8.0k points