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

Find the area of the circle with a diameter of 20.6 inches. Round your answer to the nearest tenth
What were the main efforts of political reform from 1877 to 1896? Why were these needed?
a migrating eagle flies 7.2 kilometers north over six hours. what is the velocity of the eagles?
conservation methods are needed worldwide for many reasons all but one is a reason to support conversation
Read the excerpt from part one of Trifles. HALE. Well, my first thought was to get that rope off. I looked . . . (Stops, his face twitches.) . . . but Harry, h
correct!!!!!!!!! thanks
5) PLEASE HELP WITH QUESTION. MARKING BRAINLIEST + POINTS GIVEN.
Discribe how Tabaco use could negatively impact all three sides of a teens health triangle
Technician A says that the head of a bolt has markings that indicate size. Technician B says that automotive technicians refer to fasteners as nuts and bolts. W
five ________________ took place, which lowered the variety of species found on Earth today.