subject
Computers and Technology, 18.12.2019 04:31 rina62

Assume that you have an arraylist variable named a containing 4 elements, and an object named element that is the correct type to be stored in the arraylist.

which of these statements adds the object to the end of the collection? 1. a[3] = element;
2. a. add(element;
3. a[4] = element;
4. a. add(element);

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:10
Read the code below. what will the computer print if the input for year_variable is 1700? if year_variable == 1776: print("your answer is correct. the declaration of independence was signed in “year_variable”.") elif year_variable < 1776: compute_variable = 1776 - year_variable. print("add “compute_variable“ years to your answer for the correct answer.") elif year_variable > 1776: compute_variable = year_variable - 1776 print("subtract “compute_variable” years from your answer for the correct answer.")
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
Hi plz 11 ! when planning a table, what step comes first: "define the column headers" or "calculate the number of columns/rows"? a. calculate the number of columns/rows b. define the column headers
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a,b] se pot scrie ca produs de două numere prime? “.
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Which task uses a simple parameter?
Answers: 1
You know the right answer?
Assume that you have an arraylist variable named a containing 4 elements, and an object named elemen...
Questions
question
Mathematics, 20.11.2020 20:20
question
Mathematics, 20.11.2020 20:20
question
Mathematics, 20.11.2020 20:20
question
Mathematics, 20.11.2020 20:20
question
Mathematics, 20.11.2020 20:20
question
Chemistry, 20.11.2020 20:20
Questions on the website: 13722360