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’t figure this problem out need help
Explain fully why some nuclei are radioactive.
Write the correct possessive pronoun. El mecánico te muestra unos autos (of his).
someone explain it plz​
Click to review the online content. Then answer the question(s) below, using complete sentences. Scroll down to view additional questions. Online Content: Site
Which of the following is a viral infection that most adults contract 2 to 4 times a year? A. bacterial pneumonia B. strep throat C. influenza D. the common col
pls help!! i need to also explain how i got the answer
Simplify your answer if possible.
Mitochondria provide ribosomes with
125 ft = ——— yd ———- feet a. 42 yd, 1 ft. b. 41 yd, 2 ft. c. 41 yd, 1 ft. d. 40 yd, 2 ft.