subject
Computers and Technology, 14.02.2020 05:09 momo842

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

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

14.Assume that an ArrayList of Integers named salarySteps has been declared and initialized with some initial values.

Write a statement that assigns the value 160000 to the last element of the ArrayList salarySteps.

15.Assume that an ArrayList of Integers named a has been declared with 12 elements. The integer variable k holds a value between 0 and 6. Assign 15 to the array element whose index is k.

16.Assume that an ArrayList of Integers named a that contains exactly five elements has been declared and initialized. In addition, an int variable j has also been declared and initialized to a value somewhere between 0 and 3.

Write a single statement that assigns a new value to element of the ArrrayList indexed by j. This new value should be equal to twice the value stored in the next element of the ArrayList (i. e. the element indexed by j+1).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
If the polar bear were taken out of the food chain what would happen to the seal population the seal population would diminish the seal population would grow dramatically the seal population would stay the same the seal population would decrease slightly
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Which two technologies support the building of single-page applications?
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
Answers: 1
You know the right answer?
.Assume that an ArrayList named salarySteps whose elements are of type Integer and that has exactly...
Questions
question
Social Studies, 27.06.2019 15:00
question
History, 27.06.2019 15:00
question
History, 27.06.2019 15:00