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

Find out he area of the circle.
what is the difference between stirring hot soup with a wooden spoon and a metal spoon? what physical property is being observed?
Question 7 Unsaved Brycen can cover half a basketball court (about 14 meters) in 4.0 seconds flat! How fast can he run? Question 7 options: 18 m/s 10 m/s 3.5 m
The four elements comprising over 90 of living matter are
The type of microscope that focuses beams of electrons on specimens
Which of these is a similarity in the colonial settlement of many english convicts and african slaves?
A teacher pays $39 for 10 books.What is the unit price of each book?
electricity can represent shock hazards when machines are not properly _ _ _ _ _ _ _ _
What were the key factors leading to outbreaks of rebellion against established authority?
What is the sum of the interior angles of a 16-sided polygon