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

Put the enzymes in the urea cycle in the correct order, from first to last.
You have a balance of $1678.00 on a credit card with a 15.75% APR how much interest is occurred if you pay nothing on the principal after three months?
Absorption is the process in which cells
who is the youngest President?
You happen to come across a piece of metal which has a density of ρ = 7.20 g/cm3 when the temperature is t0 = 55.0 °c. if the metal is cooled to a temperature o
explain the phrase, "like and equal are two different things," How does is idea help Meg?
You are buying 30 acres of farm land at $12,000 per acre. What is the total cost?
Mr. Rich had 2 times more cars than motorcycles in his garage. After he bought 1 more car and sold 2 motorcycles, there were 3 times more cars than motorcycles.
Which statement best describes what the volume of an object represents? A-Volume is the length of an object. B-Volume is the amount of matter in an object. C
Please help on this.