...
ArrayList (1)
Homework Answered Due Today, 11:59 PM
What would be the sequence stored in the ArrayList after running the following code:
val list = new LectureArrayList[Int]
for (i <- 0 until 10) {
}
list.insert(i/2, i)
Note: a sequence should be entered as a comma-separated list of values between parenthesis with no spaces
Type your answer and submit
Answered
ArrayList (2)
Homework Unanswered Due Today, 11:59 PM
What would be the sequence stored in the ArrayList after running the following code:
val list = new LectureArrayList[Int]
for (i <- 0 until 10)
list.insert(i/2, i)
for (i <- 0 until 5)
list.remove(i)
Note: a sequence should be entered as a comma-separated list of values between parenthesis with no spaces.
Type your answer and submit
Unanswered
! Cannot be empty
Resubmit
! Cannot be empty
Submit