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

1/3(9x+27)-4=1/2(2x+54)
Factor the expression -10x^2-41x-21
List the perfect squares between 100 and 500 that are even numbers
The gram formula weight of phosphoric acid is 98.00 g/mol, and the density of 85.0% phosphoric acid is 1.685 g/mL. Could you describe how ...
what is this number in word form 3,152,308,726
The ocular and objective lenses are found at the top and bottom of what part of a microscope?
Tasha believes that she can rewrite the difference 120 - 36 as a product of the GCF of the 2 numbers and another difference. Is she correct?
how do I round 3.047 to the nearest hundred and show the math
What was Italy’s primary role in the WWII?a. It helped Germany in accomplishing its main objectivesb. It was helpful to Britainc. It caused problems for Japand.
If 604-72=___,then 532+___=604.Explain the process of checking your work.