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

one noteworthy change in the economy during the 1920s was ?
PLEASE HELP ME BREAK DOWN THIS QUESTION! What tools and technology make you a more productive student?
Is a ph = 7.25 solution acidic, basic, or neutral at 0 °c?
Explain whether a conformer or a regulator could tolerate a wider range of conditions.
This diagram would represent the enthalpy changes in which of the following? boiling liquid hot pack cold pack melting solid
Why did saul lose the kingdom of Israel to David?
At the start of most presidential campaigns, _____ have already decided on the candidate who will get their votes.
Do you enjoy being out in the fresh air? The first sentence in the paragraph help to____the main idea it he paragraph. A delay B. Explain C. Introduce D. Spe
if y varies directly as x and y=9 when x=3,find the value of y when x=4
The Governor's vetoing of a bill that the General Assembly approves is an example of what principle? Question 13 options: judicial review checks and balances se