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 39 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
Great answer, keep it coming :)


amynguyen1221

  • Member
  • Posts: 355
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Malaria mortality rates are falling. Increased malaria prevention and control measures have greatly improved these rates. Since 2000, malaria mortality rates have fallen globally by 60% among all age groups, and by 65% among children under age 5.

Did you know?

Looking at the sun may not only cause headache and distort your vision temporarily, but it can also cause permanent eye damage. Any exposure to sunlight adds to the cumulative effects of ultraviolet (UV) radiation on your eyes. UV exposure has been linked to eye disorders such as macular degeneration, solar retinitis, and corneal dystrophies.

Did you know?

Drug-induced pharmacodynamic effects manifested in older adults include drug-induced renal toxicity, which can be a major factor when these adults are experiencing other kidney problems.

Did you know?

In women, pharmacodynamic differences include increased sensitivity to (and increased effectiveness of) beta-blockers, opioids, selective serotonin reuptake inhibitors, and typical antipsychotics.

Did you know?

Autoimmune diseases occur when the immune system destroys its own healthy tissues. When this occurs, white blood cells cannot distinguish between pathogens and normal cells.

For a complete list of videos, visit our video library