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 27 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


phuda

  • Member
  • Posts: 348
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

Approximately one in three babies in the United States is now delivered by cesarean section. The number of cesarean sections in the United States has risen 46% since 1996.

Did you know?

The term pharmacology is derived from the Greek words pharmakon("claim, medicine, poison, or remedy") and logos ("study").

Did you know?

For pediatric patients, intravenous fluids are the most commonly cited products involved in medication errors that are reported to the USP.

Did you know?

The most common treatment options for addiction include psychotherapy, support groups, and individual counseling.

Did you know?

There are more bacteria in your mouth than there are people in the world.

For a complete list of videos, visit our video library