cfancfan4125 cfancfan4125
  • 03-07-2019
  • Computers and Technology
contestada

The ArrayList class ____ method removes an item from an ArrayList at a specified location.

a.
erase

b.
remove

c.
delete

d.
get

Respuesta :

PhantomWisdom PhantomWisdom
  • 12-07-2019

Answer:

remove

Explanation:

The function used to remove the element in the ArrayList at specific index is remove.

Syntax:

remove(int index)

it used index to remove the element.

ArrayList index start from the index zero. So, if the we enter the index 0 it means remove the element at first position.

for example:

array.remove(1);  it remove the element at index 1 from the ArrayList name array.

Answer Link

Otras preguntas

Long after her conditioned fear of dogs had been extinguished, marcy experienced an unexpected surge of nervousness when she first met her cousin's new cocker c
How many times would a coin have to show heads in 50 tosses to have an experimental probability of 20% more than the theoretical probability of getting heads?
In which way do REITs resemble mutual friends
Can someone please fix these sentences so that they are parallel. Life on the Hawaii sugar plantations in the 1800’s was difficult because of the working condi
3.6m by 1.8 m wall How many 6 cm by 6 cm pictures could fit on the wall?
Your customer is extremely upset due to the long wait time, how do you respond?
Romeo claims he is in love as the play opens, but is unhappy because ______________.
why was ethics created?
FDR inspired the American people true or false
A football field measures 360 feet by 160 feet. What is the area of the field?