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 26 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
YES! Correct, THANKS for helping me on my review


cdmart10

  • Member
  • Posts: 332
Reply 3 on: Yesterday
Excellent

 

Did you know?

Medication errors are more common among seriously ill patients than with those with minor conditions.

Did you know?

Acetaminophen (Tylenol) in overdose can seriously damage the liver. It should never be taken by people who use alcohol heavily; it can result in severe liver damage and even a condition requiring a liver transplant.

Did you know?

About 100 new prescription or over-the-counter drugs come into the U.S. market every year.

Did you know?

About 600,000 particles of skin are shed every hour by each human. If you live to age 70 years, you have shed 105 pounds of dead skin.

Did you know?

During the twentieth century, a variant of the metric system was used in Russia and France in which the base unit of mass was the tonne. Instead of kilograms, this system used millitonnes (mt).

For a complete list of videos, visit our video library