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

can you help me solve it
4. If x = 20 when y = -4, find y when x = 10.5. If x = 5 when , find y when x = 10.6. If x = 2.5 when y = 100, find x when y = 50.7. If  when y = -105, find x
The length of a rectangular field is 12 yards less than the field's width. If the sum of the length and width is 96 yards, what is the length of the field in ya
Simplify √38 is a fraction
According to the table, which ordered pair is a local minimum of the function, f(x)?
what are informational sessions
6-15/(-3) A.)11 B.)3 C.)1 D.)-3
Small businesses in the future will likely be ________. a. Small and flexible b. Deaf to consumer comments c. Direct advertisers d. Technologically backwards
if the following graph represents the decay of strontium-90 in an igneous rock, what event occurred at 0 years on the horizontal axis ?
What is the value of the 4 in 432?