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 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Now, open this passage to read about fafsa requirements. describe the information you will need to provide in order to complete a fafsa. list at least three of the required documents you must include.
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
Can someone work out the answer as it comes up in one of my computer science exams and i don't understand the cryptovariables
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
English, 10.09.2021 06:50
question
Mathematics, 10.09.2021 06:50
question
Spanish, 10.09.2021 06:50
question
Mathematics, 10.09.2021 07:00
Questions on the website: 13722360