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

A 36-tooth gear turns three times. It is connected to a 12-tooth gear. How many times does the 12-tooth gear turn?
number 1 I need help with confused
what is 1/2 plus 9/10
8k-1=15 ? Help I have a question were we have to work this out what do I do?
Which statement is true of a placenta? a. The placenta passes oxygen, nutrients, and other useful substances from the fetus to the mother. b. The placenta passe
how do i solve this infinite geometric series?64/25-16/5+4-5
Suppose x + y = 6 and xy = 4. Find the value of x² y + xy² without solving the equations.
Which statement is true of a placenta? a. The placenta passes oxygen, nutrients, and other useful substances from the fetus to the mother. b. The placenta passe
From the equations 7a = 4 and 7a + 4b = 12, one can conclude that b is? Please explain the work behind the solution
How did world war 1 contribute to the collapse of the Russian monarchy?