This topic contains a solution. Click here to go to the answer

Author Question: When you create an ArrayList using ArrayList x = new ArrayList(2), ________. (Read 28 times)

james0929

  • Hero Member
  • *****
  • Posts: 586

Question 1

Which method do you use to test if an element is in a set or list named x?
◦ x.contains(element)
◦ x.include(element)
◦ (element instanceof List) || (element instanceof Set)
◦ x.in(element)
◦ x.contain(element)

Question 2

When you create an ArrayList using ArrayList x = new ArrayList(2), ________.
◦ the array list capacity is currently 2
◦ two elements are created in the array list
◦ the array list size is currently 2
◦ no elements are currently in the array list


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by james0929 on May 6, 2020

Zebsrer

  • Sr. Member
  • ****
  • Posts: 284
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




james0929

  • Member
  • Posts: 586
Reply 2 on: May 6, 2020
Excellent


skipfourms123

  • Member
  • Posts: 343
Reply 3 on: Yesterday
Gracias!

 

Did you know?

Warfarin was developed as a consequence of the study of a strange bleeding disorder that suddenly occurred in cattle on the northern prairies of the United States in the early 1900s.

Did you know?

There are 20 feet of blood vessels in each square inch of human skin.

Did you know?

Cutaneous mucormycosis is a rare fungal infection that has been fatal in at least 29% of cases, and in as many as 83% of cases, depending on the patient's health prior to infection. It has occurred often after natural disasters such as tornados, and early treatment is essential.

Did you know?

Certain chemicals, after ingestion, can be converted by the body into cyanide. Most of these chemicals have been removed from the market, but some old nail polish remover, solvents, and plastics manufacturing solutions can contain these substances.

Did you know?

Each year in the United States, there are approximately six million pregnancies. This means that at any one time, about 4% of women in the United States are pregnant.

For a complete list of videos, visit our video library