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

Difficulties faced by people as they expanded their countries prior to the advent of modern technology.
Solve the attachment...​
why is human development index necessary?​
can someone help me solve this?
Balance equation for. _Mg + _H3(PO4) --_Mg3(PO4)2+ _H2
Lập danh mục chi phí hoạt động của 1 toà nhà cho thuê hạng C
Water is falling on the blades of a turbine at a rate of 100 kg/s from a certain spring. If the height of spring be 100m, then the power transferred to the tur
can someone help me solve this?
Please select the word from the list that best fits the definition All individuals age 16 and older who are employed in paid positions or who are seeking paid e
How do I find the image after it’s been rotated 270 degrees about the point (-2,-1)?