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

how do i factor the quadratic expression   4x^2-11x=3
Solve the equation for x∈Z -x² +8x -14 ≥ 0
What led to the rise of the New Left? How did the Vietnam War and the draft inflame the movement? What were its results?
what is the coefficient for the formula 6C6H12O6?
Simplify the ratio:26:65
How are centipedes adapted for a predatory way of life?
Describe an advantage of using dry ice to ship cardboard cartons of ice cream over long distances.
n+5(n-1)=7 help me i dont get it
How is a compound sentence formed
What did the attack on the U.S. military barracks in Beirut and other terrorist incidents against Americans and other westerners reveal about a new worldwide da